1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Prevented potential mistake that I definitely didn't just make

This commit is contained in:
Krateng 2019-05-05 10:19:45 +02:00
parent 12e0e6f4c9
commit 4214bc89cc
2 changed files with 5 additions and 0 deletions

1
.gitignore vendored
View File

@ -4,6 +4,7 @@
*.txt
*.xcf
nohup.out
/.dev
# user files
*.tsv

4
maloja
View File

@ -230,6 +230,10 @@ def update():
if not gotodir(): return False
if os.path.exists("./.dev"):
print("Better not overwrite the development server!")
return
print("Updating Maloja...")
#with urllib.request.urlopen(SOURCE_URL) as response:
# with tempfile.NamedTemporaryFile(delete=True) as tmpfile: