From f937e421c9977ad608b8fc28686104384e5c2e49 Mon Sep 17 00:00:00 2001 From: +++ Date: Tue, 28 Sep 2021 11:02:31 +0200 Subject: [PATCH] get_count prueft jetzt auf werte <= null --- plugins/dsa.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/dsa.py b/plugins/dsa.py index 4f98e6c..3093125 100644 --- a/plugins/dsa.py +++ b/plugins/dsa.py @@ -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))