summaryrefslogtreecommitdiffstats
path: root/eos_downloader/tools.py
blob: a0f971a287f5c4bc37a646d8d42c9fd1e426385c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/python
# coding: utf-8 -*-

"""Module for tools related to ardl"""


def exc_to_str(exception: Exception) -> str:
    """
    Helper function to parse Exceptions
    """
    return (
        f"{type(exception).__name__}{f' ({str(exception)})' if str(exception) else ''}"
    )