diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2015-10-30 11:34:13 +0100 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2015-10-30 11:34:13 +0100 |
commit | 8bc4e196237c128d44536fe6e09ebbc2ce18fda2 (patch) | |
tree | 315e81ee774fd220b12fd1283c7278f8ced7db6d /pykolab/utils.py | |
parent | 8f21a9a8c966b3d4c1ea3eb3f8e7e878cc764d9d (diff) | |
download | pykolab-8bc4e196237c128d44536fe6e09ebbc2ce18fda2.tar.gz |
Prevent tracebacks on attribute errors
Diffstat (limited to 'pykolab/utils.py')
-rw-r--r-- | pykolab/utils.py | 5 |
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 |