summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_common.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index e7d15394..45779b05 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -176,8 +176,11 @@ url2html = re.compile(r'((mailto\:|((ht|f)tps?)\://|file\:///){1}\S+)')
def print_critical_message(msg):
print('\n\n\n')
- for line in msg.splitlines():
- log.critical(line)
+ try:
+ for line in msg.splitlines():
+ log.critical(line)
+ except AttributeError:
+ log.critical(msg)
print('\n\n\n')
def write_html_page(title, body, destfile, noheader=False, style_note=False, noendpage=False):