This commit is contained in:
Manuel Ebert 2015-04-20 14:36:53 +02:00
parent 34d437d0ba
commit 19247a4f62

View file

@ -129,7 +129,7 @@ def get_text_from_editor(config, template=""):
subprocess.call(config['editor'].split() + [tmpfile])
with codecs.open(tmpfile, "r", "utf-8") as f:
raw = f.read()
os.close(filehandle);
os.close(filehandle)
os.remove(tmpfile)
if not raw:
prompt('[Nothing saved to file]')