summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurie Clark-Michalek <bluepeppers@archlinux.us>2011-08-17 23:06:22 +0100
committerLaurie Clark-Michalek <bluepeppers@archlinux.us>2011-08-17 23:06:22 +0100
commiteec554ef698fe148fcd46cd55da59b50557fce7b (patch)
tree97cfbac92131ef9cec7c4a75b8b7b72f63124fc0
parent41c0dfe5f8e6cb57bd82cc9229238911da4e1bb4 (diff)
Added missing ArgumentError class.
-rwxr-xr-xarchey35
1 files changed, 5 insertions, 0 deletions
diff --git a/archey3 b/archey3
index b0d7d2a..78e5fb6 100755
--- a/archey3
+++ b/archey3
@@ -129,6 +129,11 @@ COLORS = {
'white': '7'
}
+class ArgumentError(Exception):
+ def __init__(self, caller, message):
+ msg = "{0}: {1}".format(caller.__class__.__name__, message)
+ super().__init__(msg)
+
# State must be serializable
State = collections.namedtuple("State", "color config logger")