audioscrobbler throws traceback on load

Bug #1162535 reported by Giorgos Keramidas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Exaile
Fix Released
Low
Giorgos Keramidas

Bug Description

The audioscrobbler plugin from the latest bzr version that I merged this afternoon into my local branch:

    revno: 4357.1.8
    fixes bug: https://launchpad.net/bugs/501190
    committer: Mathias Brodala <email address hidden>
    branch nick: trunk
    timestamp: Thu 2013-03-07 23:18:16 +0100
    message:
      * AudioScrobbler: Use initial post URL for re-login after a bad session response

      (Fixes: bug #501190)

fails to load, and throws a traceback like:

19:15:24,135:DEBUG : Loaded plugin audioscrobbler (xl.plugins)
19:15:24,136:DEBUG : Exception caught!
Traceback (most recent call last):
  File "/usr/local/share/exaile/plugins/audioscrobbler/__init__.py", line 165, in initialize
    scrobbler.login(username, password, hashpw=True, post_url=server)
  File "/usr/local/share/exaile/plugins/audioscrobbler/_scrobbler.py", line 71, in login
    INITIAL_URL = INITIAL_URL or post_url
UnboundLocalError: local variable 'INITIAL_URL' referenced before assignment
 (xl.common)

** (exaile.py:7804): CRITICAL **: clearlooks_style_draw_focus: assertion `width >= -1' failed

The attached patch fixed this for me, by making INITIAL_URL visible as a 'global' name in the _scrobbler.py startup code:

Related branches

Revision history for this message
Giorgos Keramidas (keramida) wrote :
Revision history for this message
Mathias Brodala (mathbr) wrote :

Thanks, fixed with r4366 in trunk.

Changed in exaile:
assignee: nobody → Giorgos Keramidas (keramida)
importance: Undecided → Low
milestone: none → 3.4.0
status: New → Fix Committed
Changed in exaile:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.