Commits

Adam Pritchard  committed afba3ea

Formatting is now more backwards-compatible

  • Participants
  • Parent commits 453c1dd
  • Branches diagnostic-feeback

Comments (0)

Files changed (1)

File EmailResponder/FeedbackDecryptor/mailformatter.py

 
     # We want the diagnostic entries to appear inline chronologically with the
     # status entries, so we'll merge the lists and process them together.
-    status_diagnostic_history = sorted(status_history + diagnostic_history,
+    status_diagnostic_history = status_history
+    if diagnostic_history:
+        status_diagnostic_history += diagnostic_history
+    status_diagnostic_history = sorted(status_diagnostic_history,
                                        key=itemgetter('timestamp'))
 %>
 % for entry in status_diagnostic_history: