Skip to content

Commit

Permalink
Merge pull request #2192 from dandi/dandi-error-init
Browse files Browse the repository at this point in the history
Set default values for optional DandiError fields
  • Loading branch information
jjnesbitt authored Feb 28, 2025
2 parents 1ba595b + 748b6fd commit 1870c55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dandiapi/api/services/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@


class DandiError(Exception):
message: str | None
http_status_code: int | None
message: str | None = None
http_status_code: int | None = None

def __init__(
self, message: str | None = None, http_status_code: int | None = None, *args: object
Expand Down

0 comments on commit 1870c55

Please sign in to comment.