Skip to content

Commit 8b2ad52

Browse files
author
Felipe Vicens
authored
Merge pull request #875 from felipevicens/master
Description as not mandatory field
2 parents 6ab878d + 044075a commit 8b2ad52

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

son-gtklic/routes/licenses.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,14 @@ def post(self):
6868
else:
6969
return build_response(status_code=400, error="Invalid field", description="Status parameter was invalid")
7070

71+
if 'description' in content:
72+
description = content['description']
73+
else:
74+
description = None
75+
7176
new_license = License( service_uuid,
7277
user_uuid,
73-
content['description'],
78+
description,
7479
validation_url,
7580
status,
7681
license_type)

0 commit comments

Comments
 (0)