After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 702994 - WARNING : Testing for expected AutostartCondition failed: Got (None)
WARNING : Testing for expected AutostartCondition failed: Got (None)
Status: RESOLVED FIXED
Product: gnome-tweak-tool
Classification: Applications
Component: general
3.8.x
Other Linux
: Normal trivial
: ---
Assigned To: GNOME Tweak Tool maintainer(s)
GNOME Tweak Tool maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-06-24 17:26 UTC by Andreas Henriksson
Modified: 2013-07-17 21:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Avoid harmless warning trying to split None autostartcondition (1.15 KB, patch)
2013-06-24 17:30 UTC, Andreas Henriksson
committed Details | Review

Description Andreas Henriksson 2013-06-24 17:26:43 UTC
When I start gnome-tweak-tool, there is this (harmless) warning in the output:

WARNING : Testing for expected AutostartCondition failed: Got (None)
Traceback (most recent call last):
  • File "/usr/lib/python2.7/dist-packages/gtweak/utils.py", line 161 in uses_autostart_condition
    return asc.split(" ", 1)[0] == autostart_type
AttributeError: 'NoneType' object has no attribute 'split'

Comment 1 Andreas Henriksson 2013-06-24 17:30:15 UTC
Created attachment 247658 [details] [review]
Avoid harmless warning trying to split None autostartcondition

When self.get_austostart_condition() returns None and
autostart_type is not None, the following code will
try to apply split on None.
The exception handling catches this and returns the correct
value for the function in this case so it's harmless,
this just fixes so that there's no traceback in the application
output....
Comment 2 John Stowers 2013-07-17 21:27:45 UTC
Attachment 247658 [details] pushed as cdcd3c8 - Avoid harmless warning trying to split None autostartcondition