# HG changeset patch # User Nicholas Jillings # Date 1509470449 0 # Node ID aae564b49b5a055ce9c5ef17a2ff94684ad8423b # Parent b3230c0da598644140b9d7a6440716205f8e1a1b Close #196 diff -r b3230c0da598 -r aae564b49b5a python/pythonServer.py --- a/python/pythonServer.py Tue Oct 31 17:14:23 2017 +0000 +++ b/python/pythonServer.py Tue Oct 31 17:20:49 2017 +0000 @@ -70,8 +70,6 @@ lenSt = len(st) fmt = st[lenSt-1].rsplit('.') fmt = fmt[len(fmt)-1] - print(st) - print(fmt) fpath = "../"+urllib2.unquote(s.path) size = os.path.getsize(fpath) fileDump = open(fpath, mode='rb') @@ -197,7 +195,8 @@ curSaveIndex += 1 curFileName = 'test-'+str(curSaveIndex)+'.xml' if update == False: - os.remove("../saves/update-"+filename) + if(os.path.isfile("../saves/update-"+filename)): + os.remove("../saves/update-"+filename) def testSave(self): self.send_response(200)