This commit is contained in:
Martin
2016-06-30 17:31:58 +02:00
parent 032b417e1d
commit 77634ae303
15 changed files with 41 additions and 23 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
# coding=UTF-8
class ValidationError(Exception):
def __init__(self, message):
@@ -11,4 +12,4 @@ def validate_keys_exists(obj, *keys):
for key in keys:
if not key in obj:
raise ValidationError('No {} is specified'.format(key))
return True
return True