Minor code improvements

This commit is contained in:
aceisace
2022-04-10 06:35:08 +02:00
parent f452135b42
commit 5cd04bda04
16 changed files with 84 additions and 95 deletions

View File

@@ -115,7 +115,7 @@ class Simple(inkycal_module):
# Check if all required parameters are present
# remove this if your module has no required parameters
for param in self.requires:
if not param in config:
if param not in config:
raise Exception('config is missing {}'.format(param))
# the web-UI removes any blank space from the input