diff options
author | Aleksander Machniak <machniak@kolabsys.com> | 2019-11-25 14:36:03 +0100 |
---|---|---|
committer | Aleksander Machniak <machniak@kolabsys.com> | 2019-11-25 14:36:03 +0100 |
commit | 512cb1c3e60c80240d74eb180a34c3d2930b16ba (patch) | |
tree | 60b1ca01fedf1c7ea83a51e21478fbd0a9219a38 | |
parent | 181bcc08dcdd7e029aabc524b777fda24feb9cea (diff) | |
download | pykolab-512cb1c3e60c80240d74eb180a34c3d2930b16ba.tar.gz |
Fix error when running signature module without any config (Bifrost#T243288)
-rw-r--r-- | wallace/module_signature.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wallace/module_signature.py b/wallace/module_signature.py index 97766c7..dda2d92 100644 --- a/wallace/module_signature.py +++ b/wallace/module_signature.py @@ -160,7 +160,7 @@ def execute(*args, **kw): # noqa: C901 if os.path.exists(_sig_text_conf): signature_text = open(_sig_text_conf, 'r').read() - if not signature_html and not signature_text: + if not signature_html and not signature_text and signature_rules is not None: for signature_rule in signature_rules: try: for attr, regex in signature_rule.iteritems(): |