summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xarchey311
1 files changed, 10 insertions, 1 deletions
diff --git a/archey3 b/archey3
index cdbfbce..9887379 100755
--- a/archey3
+++ b/archey3
@@ -19,7 +19,16 @@ from time import ctime, sleep
from os import getenv
import re
import os.path
-from logbook import Logger
+
+try:
+ from logbook import Logger
+except ImportError:
+ class Logger(object):
+ def __init__(self, name, level=0):
+ self.name = name
+ self.level = level
+ debug = info = warn = warning = notice = error = exception = \
+ critical = log = lambda *a, **kw: None
UNAME_FLAG_MEANINGS = {
'a': 'System Infomation',