Skip to content

Commit

Permalink
Fix credential serializer when credentials model is None
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed Aug 28, 2024
1 parent 4619f94 commit 30d8053
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/api/src/backend/serializers/CredentialsSerializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
class CredentialsSerializer:
@staticmethod
def serialize(model):

credential = {}

if model == None:
return None

credential["sk_id"] = model.sk_id
credential["owner"] = model.owner
credential["created_at"] = model.created_at
Expand Down

0 comments on commit 30d8053

Please sign in to comment.