Skip to content

Commit

Permalink
Update lib/galaxy/exceptions/__init__.py
Browse files Browse the repository at this point in the history
Co-authored-by: Nicola Soranzo <[email protected]>
  • Loading branch information
jmchilton and nsoranzo authored Jan 25, 2024
1 parent 7209c8d commit ebdece6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/exceptions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(self, err_msg: Optional[str] = None, type="info", **extra_error_inf
self.extra_error_info = extra_error_info

@staticmethod
def from_code(status_code: int, message: Optional[str]) -> "MessageException":
def from_code(status_code: int, message: Optional[str] = None) -> "MessageException":
exception_class = MessageException
if status_code == 404:
exception_class = ObjectNotFound
Expand Down

0 comments on commit ebdece6

Please sign in to comment.