Last active
August 16, 2019 17:00
-
-
Save uyar/41d32434b0b6aedfe44183a5e8473fbe to your computer and use it in GitHub Desktop.
Patch for resolving deployment issues in Lektor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -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