Skip to content

Commit

Permalink
add args docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonChen666 committed Jan 29, 2025
1 parent 6c42c8b commit eaaa465
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion synadm/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,14 @@


def log_fatal_exit(error, logger, message=None):
"""Log a fatal error and exit synadm."""
"""Log a fatal error and exit synadm.
Args:
error: A Python exception.
logger: A Python logger, with info and fatal methods
message: Message to use instead of "synadm exited due to a fatal
error."
"""
if message is None:
message = "synadm exited due to a fatal error."

Expand Down

0 comments on commit eaaa465

Please sign in to comment.