summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-ximdb-lookup/imdblookup.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/imdb-lookup/imdblookup.py b/imdb-lookup/imdblookup.py
index 9655ce6..f6d7ff5 100755
--- a/imdb-lookup/imdblookup.py
+++ b/imdb-lookup/imdblookup.py
@@ -153,6 +153,8 @@ class UI(urwid.WidgetWrap):
def rename(*_):
urwid.disconnect_signal(self.btn_apply, u"click", rename)
try:
+ if not os.path.exists(info["filename"]):
+ os.mkdir(info["filename"])
shutil.move(self.filename, info["filename"])
except Exception as e:
self.view.set_focus("header")