Fix errors on interruptions
Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
parent
9c4354a3e8
commit
a56de2ad5a
1 changed files with 6 additions and 3 deletions
|
@ -91,12 +91,15 @@ if api != None and api_token == None:
|
|||
sys.exit(1)
|
||||
|
||||
def cleanup():
|
||||
if name != None:
|
||||
if os.path.isfile("projects/worldbuild-" + name + "/osm2city-exceptions.log"):
|
||||
run("mv projects/worldbuild-" + name + "/osm2city-exceptions.log projects/worldbuild/output/error/" + name + "-" + strftime("%Y%m%d-%H%M") + ".exceptions.log", shell=True)
|
||||
|
||||
run("rm -rf projects/worldbuild-" + name, shell=True)
|
||||
name = None
|
||||
|
||||
build = None
|
||||
name = None
|
||||
try:
|
||||
running = True
|
||||
while running:
|
||||
|
|
Loading…
Reference in a new issue