Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dcwatson committed May 23, 2024
1 parent cd52135 commit 0ac39b9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions api/views/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ def instance_info_v1(request) -> dict:
"max_expiration": 2629746,
},
},
"contact_account": schemas.Account.from_identity(admin_identity),
"contact_account": (
schemas.Account.from_identity(admin_identity) if admin_identity else None
),
"rules": [],
}

Expand Down Expand Up @@ -141,7 +143,11 @@ def instance_info_v2(request) -> dict:
},
"contact": {
"email": "",
"account": schemas.Account.from_identity(admin_identity),
"account": (
schemas.Account.from_identity(admin_identity)
if admin_identity
else None
),
},
"rules": [],
}
Expand Down

0 comments on commit 0ac39b9

Please sign in to comment.