summaryrefslogtreecommitdiff
path: root/imdb-lookup/imdblookup.py
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2014-10-14 22:07:10 +0200
committerYves Fischer <yvesf-git@xapek.org>2014-10-14 22:07:10 +0200
commitc6e43134c88a9afa3ec131cdf87e93273a72d886 (patch)
tree99dbd5c650fe8dc96a757dd1d6dd0de9f50adfce /imdb-lookup/imdblookup.py
parent3597b3d247a1cd92b5f371772f67618bb16ed876 (diff)
downloadscripts-c6e43134c88a9afa3ec131cdf87e93273a72d886.tar.gz
scripts-c6e43134c88a9afa3ec131cdf87e93273a72d886.zip
another stupid error
Diffstat (limited to 'imdb-lookup/imdblookup.py')
-rwxr-xr-ximdb-lookup/imdblookup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/imdb-lookup/imdblookup.py b/imdb-lookup/imdblookup.py
index aaca34e..9655ce6 100755
--- a/imdb-lookup/imdblookup.py
+++ b/imdb-lookup/imdblookup.py
@@ -154,10 +154,11 @@ class UI(urwid.WidgetWrap):
urwid.disconnect_signal(self.btn_apply, u"click", rename)
try:
shutil.move(self.filename, info["filename"])
- raise urwid.ExitMainLoop()
except Exception as e:
self.view.set_focus("header")
self.description.set_text((u"error", u"Rename failed: {0}".format(e)))
+ return
+ raise urwid.ExitMainLoop()
self.description.set_text([
(u"bold", "Move "),