get_count prueft jetzt auf werte <= null
This commit is contained in:
parent
ce79ce07fb
commit
f937e421c9
1 changed files with 3 additions and 0 deletions
|
@ -81,6 +81,9 @@ class Plugin(Plugin):
|
||||||
'''
|
'''
|
||||||
try:
|
try:
|
||||||
value = int(item.strip())
|
value = int(item.strip())
|
||||||
|
if value <= 0:
|
||||||
|
logging.warning('Invalid value for count: {}'.format(item))
|
||||||
|
return False
|
||||||
return value
|
return value
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.warning('Invalid value for count: {}'.format(item))
|
logging.warning('Invalid value for count: {}'.format(item))
|
||||||
|
|
Loading…
Reference in a new issue