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 775930 - NameError in playlists.py
NameError in playlists.py
Status: RESOLVED FIXED
Product: gnome-music
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-music-maint
gnome-music-maint
Depends on:
Blocks:
 
 
Reported: 2016-12-10 14:17 UTC by Sambhav Kothari
Modified: 2016-12-10 16:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
playlists.py: change inconsistent error variables (2.05 KB, patch)
2016-12-10 14:23 UTC, Sambhav Kothari
committed Details | Review

Description Sambhav Kothari 2016-12-10 14:17:47 UTC
Glib.Error have been excepted as variable 'error' but are used as 'err'
in the warning below causing NameError
Comment 1 Sambhav Kothari 2016-12-10 14:23:40 UTC
Created attachment 341720 [details] [review]
playlists.py: change inconsistent error variables

Errors had been excepted as error but had been referered later as err.
This caused a NameError as err was undefined.

Changed error variable to err to keep consistency

Fixes
Comment 2 Marinus Schraal 2016-12-10 16:32:35 UTC
Fixed, redid the commit msg a bit. Thanks for finding this.