1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00

remove TypeError from exception check

This commit is contained in:
Kelly Brazil
2019-11-06 08:47:54 -06:00
parent 2bb7409887
commit 88f4c5b5a9
6 changed files with 10 additions and 10 deletions

View File

@ -159,7 +159,7 @@ def process(proc_data):
try:
key_int = int(rule[key])
rule[key] = key_int
except (ValueError, TypeError):
except (ValueError):
rule[key] = None
if 'bytes' in rule:
@ -183,7 +183,7 @@ def process(proc_data):
try:
bytes_int = int(rule['bytes'])
rule['bytes'] = bytes_int * multiplier
except (ValueError, TypeError):
except (ValueError):
rule['bytes'] = None
if 'opt' in rule: