get_count prueft jetzt auf werte <= null

This commit is contained in:
+++ 2021-09-28 11:02:31 +02:00
parent ce79ce07fb
commit f937e421c9
1 changed files with 3 additions and 0 deletions

View File

@ -81,6 +81,9 @@ class Plugin(Plugin):
'''
try:
value = int(item.strip())
if value <= 0:
logging.warning('Invalid value for count: {}'.format(item))
return False
return value
except Exception as e:
logging.warning('Invalid value for count: {}'.format(item))