summaryrefslogtreecommitdiff
path: root/tools/petdbconverter.py
diff options
context:
space:
mode:
authorDastgir <dastgirp@gmail.com>2018-10-07 14:02:16 +0530
committerDastgir <dastgirp@gmail.com>2018-10-13 16:34:09 +0530
commit9e879ea913ec93212ebd46f56990d1e90209b32a (patch)
treeee9928f16cae4b53ebeb722d8417e0aa3dcddca2 /tools/petdbconverter.py
parent838d12f50e5a78f271a67292141b463404a33fe4 (diff)
downloadhercules-9e879ea913ec93212ebd46f56990d1e90209b32a.tar.gz
hercules-9e879ea913ec93212ebd46f56990d1e90209b32a.tar.bz2
hercules-9e879ea913ec93212ebd46f56990d1e90209b32a.tar.xz
hercules-9e879ea913ec93212ebd46f56990d1e90209b32a.zip
Fixes LGTM Alert: Added Exceptions
Diffstat (limited to 'tools/petdbconverter.py')
-rw-r--r--tools/petdbconverter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/petdbconverter.py b/tools/petdbconverter.py
index 261c1e6ad..1b7d2e4d6 100644
--- a/tools/petdbconverter.py
+++ b/tools/petdbconverter.py
@@ -175,7 +175,7 @@ def readItemDB(inFile, itemDb):
elif line[:3] == "Id:":
try:
itemId = int(line[4:])
- except:
+ except ValueError:
started = False
if itemId != 0 and itemName != "":
# was need for remove wrong characters