Skip to content

Instantly share code, notes, and snippets.

@uyar
Last active August 16, 2019 17:00
Show Gist options
  • Save uyar/41d32434b0b6aedfe44183a5e8473fbe to your computer and use it in GitHub Desktop.
Save uyar/41d32434b0b6aedfe44183a5e8473fbe to your computer and use it in GitHub Desktop.
Patch for resolving deployment issues in Lektor
@@ -94,6 +94,7 @@ def _temporary_folder(env):
finally:
try:
shutil.rmtree(folder)
+ os.rmdir(base)
except (IOError, OSError):
pass
@@ -174,6 +175,7 @@ class Command(object):
if not line:
if stream in streams:
streams.remove(stream)
+ stream.close()
break
yield line.rstrip().decode('utf-8', 'replace')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment