diff options
author | Haru <haru@dotalux.com> | 2018-11-13 15:57:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-13 15:57:29 +0100 |
commit | 1af5b8f747099cc19741d148fdac9768b518caf8 (patch) | |
tree | 28ee00cda8e630775316d191325c391563c9b30d /tools/mobskilldbconverter.py | |
parent | 78def4452300ef252370c6de9f030ed52d70322a (diff) | |
parent | 9e879ea913ec93212ebd46f56990d1e90209b32a (diff) | |
download | hercules-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.py | 2 |
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] |