summaryrefslogtreecommitdiff
path: root/tools/mobskilldbconverter.py
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-11-13 15:57:29 +0100
committerGitHub <noreply@github.com>2018-11-13 15:57:29 +0100
commit1af5b8f747099cc19741d148fdac9768b518caf8 (patch)
tree28ee00cda8e630775316d191325c391563c9b30d /tools/mobskilldbconverter.py
parent78def4452300ef252370c6de9f030ed52d70322a (diff)
parent9e879ea913ec93212ebd46f56990d1e90209b32a (diff)
downloadhercules-1af5b8f747099cc19741d148fdac9768b518caf8.tar.gz
hercules-1af5b8f747099cc19741d148fdac9768b518caf8.tar.bz2
hercules-1af5b8f747099cc19741d148fdac9768b518caf8.tar.xz
hercules-1af5b8f747099cc19741d148fdac9768b518caf8.zip
Merge pull request #2268 from dastgirp/lgtm/python
Fixes alerts shown by LGTM for python
Diffstat (limited to 'tools/mobskilldbconverter.py')
-rw-r--r--tools/mobskilldbconverter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mobskilldbconverter.py b/tools/mobskilldbconverter.py
index 310331043..4ba042062 100644
--- a/tools/mobskilldbconverter.py
+++ b/tools/mobskilldbconverter.py
@@ -206,7 +206,7 @@ def LoadOldDB(mode, serverpath):
continue
try:
Db[MonsterId][skillidx]['val{}'.format(i)] = int(entry[12 + i])
- except:
+ except ValueError:
Db[MonsterId][skillidx]['val{}'.format(i)] = int(entry[12 + i], 16)
Db[MonsterId][skillidx]['Emotion'] = entry[17]
Db[MonsterId][skillidx]['ChatMsgID'] = entry[18]