pep8 it
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user