[gnome-music] playlists: Correct error variable names
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] playlists: Correct error variable names
- Date: Sat, 10 Dec 2016 16:30:46 +0000 (UTC)
commit 33687e0deaf4ea685bfa3a90f19b569059ef2b4e
Author: Sambhav Kothari <sambhavs email gmail com>
Date: Sat Dec 10 19:49:50 2016 +0530
playlists: Correct error variable names
https://bugzilla.gnome.org/show_bug.cgi?id=775930
gnomemusic/playlists.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gnomemusic/playlists.py b/gnomemusic/playlists.py
index 9a93396..6cee3c4 100644
--- a/gnomemusic/playlists.py
+++ b/gnomemusic/playlists.py
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]