Fix crash when project has no allowed_methods property
This commit is contained in:
@@ -57,7 +57,7 @@ class Project(List, Find, Create, Post, Update, Delete, Replace):
|
||||
attributes.pop('_updated', None)
|
||||
attributes.pop('_links', None)
|
||||
attributes.pop('_deleted', None)
|
||||
attributes.pop('allowed_methods')
|
||||
attributes.pop('allowed_methods', None)
|
||||
# Strip embedded image file properties and revert to ObjectId
|
||||
for prop in ['picture_square', 'picture_header']:
|
||||
if prop in attributes and type(attributes[prop]) is dict:
|
||||
|
||||
Reference in New Issue
Block a user