summaryrefslogtreecommitdiff
path: root/hercules/code/server/tmw/main.py
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2015-02-16 21:32:33 -0600
committerwushin <pasekei@gmail.com>2015-02-17 00:11:28 -0600
commit7b35af2e20b7b6eb7fa6086f5b621e900131a583 (patch)
treebb759bc53e965660ce7c0aab88b7b1766b6a22e6 /hercules/code/server/tmw/main.py
parent3d47789c6a19655b0d46ab260f51d6d6c69d1bf2 (diff)
downloadtools-7b35af2e20b7b6eb7fa6086f5b621e900131a583.tar.gz
tools-7b35af2e20b7b6eb7fa6086f5b621e900131a583.tar.bz2
tools-7b35af2e20b7b6eb7fa6086f5b621e900131a583.tar.xz
tools-7b35af2e20b7b6eb7fa6086f5b621e900131a583.zip
Herceles: tmw convertor: fix removing existing files
Diffstat (limited to 'hercules/code/server/tmw/main.py')
-rw-r--r--hercules/code/server/tmw/main.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/hercules/code/server/tmw/main.py b/hercules/code/server/tmw/main.py
index 4822199..6cd8f07 100644
--- a/hercules/code/server/tmw/main.py
+++ b/hercules/code/server/tmw/main.py
@@ -14,7 +14,10 @@ from code.server.questsdb import *
from code.serverutils import *
def serverTmwMain():
- cleanServerData()
+ try:
+ cleanServerData()
+ except:
+ print "Updating server"
createMainScript()
items = convertItemDb()
convertNpcs(items)