From c6e43134c88a9afa3ec131cdf87e93273a72d886 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Tue, 14 Oct 2014 22:07:10 +0200 Subject: another stupid error --- imdb-lookup/imdblookup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'imdb-lookup') 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 "), -- cgit v1.2.1