self.stackauth is None when updating sites in display_notification()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StackApplet |
New
|
Undecided
|
Unassigned |
Bug Description
Not sure why/when this bug surfaced only recently but I noticed one of the sites was stuck 'Loading...' and investigating further revealed this stacktrace:
Traceback (most recent call last):
File "/usr/share/
self.
File "/usr/share/
for site in self.stackauth[
TypeError: 'NoneType' object has no attribute '__getitem__'
Looking at the code it seems there is a possible race condition in initialising resulting in self.stackauth still being 'None' in display_
+if not self.stackauth:
+ return
# We need to determine which site is equivalent to this image.
for site in self.stackauth[
For reference I am running stackapplet on Ubuntu 16.04.