Opened 12 years ago

Closed 12 years ago

#2175 closed bug (Fixed)

systemtray free variable 'self' referenced before assignment in enclosing scope

Reported by: Calum Owned by:
Priority: minor Milestone: 1.3.6
Component: GTK UI Version: 1.3.5
Keywords: Cc:

Description

Forwarded from Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=858863

:systemtray.py:488:on_response:NameError: free variable 'self' referenced before assignment in enclosing scope
:
:Traceback (most recent call last):
:  File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/systemtray.py", line 488, in on_response
:    if self.config["tray_password"] == sha_hash(entered_pass.get_text()).hexdigest():
:NameError: free variable 'self' referenced before assignment in enclosing scope
:
:Local variables in innermost frame:
:response_id: -5
:dialog: <gtk.Dialog object at 0x29cb8c0 (GtkDialog at 0x1f80a70)>

Change History (6)

comment:1 by Chase, 12 years ago

I can't see how this is possible, self is the first argument to the unlock_tray method where this function is defined.

comment:3 by Calum, 12 years ago

Milestone: 1.3.61.3.x

comment:4 by Calum, 12 years ago

This might fix it but since I cannot replicate, it's impossible to know for sure.

https://github.com/cas--/Deluge/commit/dcca527eafa

comment:5 by Calum, 12 years ago

Milestone: 1.3.x1.3.6

comment:6 by Calum, 12 years ago

Resolution: fixed
Status: newclosed

Fixed 1.3-stable: 5ecc5804

Note: See TracTickets for help on using tickets.