From 7cff47a8d4317154b244e7cb387026c66deb3183 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sun, 14 Aug 2011 14:48:02 +0000 Subject: [PATCH] * morituri/common/program.py: Don't fail if there is no metadata. --- ChangeLog | 5 +++++ morituri/common/program.py | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 48a3bfb..a0cb288 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-08-14 Thomas Vander Stichele + + * morituri/common/program.py: + Don't fail if there is no metadata. + 2011-08-14 Thomas Vander Stichele * morituri/common/program.py: diff --git a/morituri/common/program.py b/morituri/common/program.py index e585457..273cbf7 100644 --- a/morituri/common/program.py +++ b/morituri/common/program.py @@ -355,6 +355,8 @@ class Program(log.Loggable): ret = None metadatas = None + e = None + for _ in range(0, 4): try: metadatas = musicbrainz(mbdiscid) @@ -364,7 +366,8 @@ class Program(log.Loggable): continue if not metadatas: - print "Error:", e + if e: + print "Error:", e print 'Continuing without metadata' if metadatas: