Skip to content

Commit

Permalink
update reference server to use ObjectDoesNotExist
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeUrban committed Sep 10, 2020
1 parent ce388e2 commit 2fd7ce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/server/integrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ def delete(self, account: str, memo: Optional[str], memo_type: Optional[str]):
qparams["memo_type"] = memo_type
account = PolarisStellarAccount.objects.filter(**qparams).first()
if not account:
raise ValueError()
raise ObjectDoesNotExist()
account.user.delete()

@staticmethod
Expand Down

0 comments on commit 2fd7ce4

Please sign in to comment.