Commit 33687e0d authored by Sambhav Kothari's avatar Sambhav Kothari Committed by Marinus Schraal

playlists: Correct error variable names

https://bugzilla.gnome.org/show_bug.cgi?id=775930
parent 32ec7403
......@@ -148,7 +148,7 @@ class Playlists(GObject.GObject):
""" Called after the playlist id is fetched """
try:
cursor.next_finish(res)
except GLib.Error as error:
except GLib.Error as err:
logger.warn("Error: %s, %s", err.__class__, err)
return
......@@ -165,7 +165,7 @@ class Playlists(GObject.GObject):
""" Starts retrieving the playlist id """
try:
cursor = obj.query_finish(result)
except GLib.Error as error:
except GLib.Error as err:
logger.warn("Error: %s, %s", err.__class__, err)
return
......@@ -192,7 +192,7 @@ class Playlists(GObject.GObject):
# Update the playlist ID
try:
cursor.next_finish(res)
except GLib.Error as error:
except GLib.Error as err:
logger.warn("Error: %s, %s", err.__class__, err)
return
......@@ -205,7 +205,7 @@ class Playlists(GObject.GObject):
""" Called after the playlist is created and the ID is fetched """
try:
cursor = obj.query_finish(res)
except GLib.Error as error:
except GLib.Error as err:
logger.warn("Error: %s, %s", err.__class__, err)
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment