Browse Source

Update analytics/config.py

Co-authored-by: Alexey Velikiy <av@corpglory.com>
master
rozetko 4 years ago committed by GitHub
parent
commit
6e088b7638
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      analytics/config.py

2
analytics/config.py

@ -26,7 +26,7 @@ def get_config_field(field: str, default_val = None, allowed_values = []):
if len(allowed_values) > 0 and value not in allowed_values:
raise Exception('{} value must be one of: {}, got: {}'.format(field, allowed_values, value))
if value == None:
if value is None:
raise Exception('Please configure {}'.format(field))
return value

Loading…
Cancel
Save