original_docstring: Return current user soundtrack or empty dict otherwise.
docstring: Return current user soundtrack or empty dict otherwise.
docstring_tokens: Return current user soundtrack or empty dict otherwise .
code: def _get_user_soundtrack(self) -> dict[str, Any]:
          """Return current user soundtrack or empty dict otherwise."""
          cfg = _ba.app.config
          soundtrack: dict[str, Any] = {}
          soundtrackname = cfg.get('Soundtrack')
          if soundtrackname is not None and soundtrackname != '__default__':
              try:
                  soundtrack = cfg.get('Soundtracks', {})[soundtrackname]
              except Exception as exc:
                  print(f'Error looking up user soundtrack: {exc}')
                  soundtrack = {}
          return soundtrack
code_tokens: def _get_user_soundtrack ( self ) -> dict [ str , Any ] : cfg = _ba . app . config soundtrack : dict [ str , Any ] = { } soundtrackname = cfg . get ( 'Soundtrack' ) if soundtrackname is not None and soundtrackname != '__default__' : try : soundtrack = cfg . get ( 'Soundtracks' , { } ) [ soundtrackname ] except Exception as exc : print ( f'Error looking up user soundtrack: {exc}' ) soundtrack = { } return soundtrack
short_docstring: Return current user soundtrack or empty dict otherwise.
short_docstring_tokens: Return current user soundtrack or empty dict otherwise .
comment: """Return current user soundtrack or empty dict otherwise."""