Skip to content

Commit

Permalink
[qa][project] fix AttributeError: 'NoneType' object has no attribute …
Browse files Browse the repository at this point in the history
…'items'
  • Loading branch information
EvanBldy committed Sep 13, 2023
1 parent efa3fd9 commit a7def6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zou/app/blueprints/crud/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ def update_data(self, data, instance_id):
types = [type_name for type_name, _ in PROJECT_STYLES]
if data["production_style"] not in types:
raise ArgumentsException("Invalid production_style")
return data

@jwt_required()
def delete(self, instance_id):
Expand Down

0 comments on commit a7def6e

Please sign in to comment.