diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2014-10-14 22:07:10 +0200 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2014-10-14 22:07:10 +0200 |
commit | c6e43134c88a9afa3ec131cdf87e93273a72d886 (patch) | |
tree | 99dbd5c650fe8dc96a757dd1d6dd0de9f50adfce | |
parent | 3597b3d247a1cd92b5f371772f67618bb16ed876 (diff) | |
download | scripts-c6e43134c88a9afa3ec131cdf87e93273a72d886.tar.gz scripts-c6e43134c88a9afa3ec131cdf87e93273a72d886.zip |
another stupid error
-rwxr-xr-x | imdb-lookup/imdblookup.py | 3 |
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 "), |