summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-10-30 11:34:13 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-10-30 11:34:13 +0100
commit8bc4e196237c128d44536fe6e09ebbc2ce18fda2 (patch)
tree315e81ee774fd220b12fd1283c7278f8ced7db6d
parent8f21a9a8c966b3d4c1ea3eb3f8e7e878cc764d9d (diff)
downloadpykolab-8bc4e196237c128d44536fe6e09ebbc2ce18fda2.tar.gz
Prevent tracebacks on attribute errors
-rw-r--r--pykolab/utils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pykolab/utils.py b/pykolab/utils.py
index 6838589..7fca3fe 100644
--- a/pykolab/utils.py
+++ b/pykolab/utils.py
@@ -300,8 +300,9 @@ def generate_password():
return output
def multiline_message(message):
- if conf.cli_keywords.quiet:
- return ""
+ if hasattr(conf, 'cli_keywords') and hasattr(conf.cli_keywords, 'quiet'):
+ if conf.cli_keywords.quiet:
+ return ""
column_width = 80