1
0
Fork 0
eos-downloader/eos_downloader/tools.py
Daniel Baumann 55e5e7ac79
Adding upstream version 0.8.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-05 13:43:43 +01:00

13 lines
288 B
Python

#!/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 ''}"
)