diff options
-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 "), |