Skip to content

Tools

tools

Module for tools related to ardl

exc_to_str

exc_to_str(exception: Exception) -> str

Helper function to parse Exceptions

Source code in eos_downloader/tools.py
 7
 8
 9
10
11
12
13
def exc_to_str(exception: Exception) -> str:
    """
    Helper function to parse Exceptions
    """
    return (
        f"{type(exception).__name__}{f' ({str(exception)})' if str(exception) else ''}"
    )