summaryrefslogtreecommitdiffstats
path: root/eos_downloader/tools.py
diff options
context:
space:
mode:
Diffstat (limited to 'eos_downloader/tools.py')
-rw-r--r--eos_downloader/tools.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/eos_downloader/tools.py b/eos_downloader/tools.py
new file mode 100644
index 0000000..a0f971a
--- /dev/null
+++ b/eos_downloader/tools.py
@@ -0,0 +1,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 ''}"
+ )