Skip to content
Snippets Groups Projects
Commit 1c58dfca authored by Nikolay Stanchev's avatar Nikolay Stanchev
Browse files

Updated error message

parent 3dbb8475
No related branches found
No related tags found
No related merge requests found
...@@ -73,7 +73,7 @@ def validate_config_content(configuration): ...@@ -73,7 +73,7 @@ def validate_config_content(configuration):
except: except:
raise AssertionError("Configuration must be a JSON object.") raise AssertionError("Configuration must be a JSON object.")
assert len(configuration) == len(CONFIG_ATTRIBUTES), "Configuration mustn't contain more attributes than the required ones." assert len(configuration) == len(CONFIG_ATTRIBUTES), "Configuration mustn't contain a different number of attributes than the number of required ones."
for attribute in CONFIG_ATTRIBUTES: for attribute in CONFIG_ATTRIBUTES:
assert attribute in configuration, "Required attribute not found in the request content." assert attribute in configuration, "Required attribute not found in the request content."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment