changeset 43216:6a350194de7f

automation: capture additional exception when formatting I started encountering this for some reason. Differential Revision: https://phab.mercurial-scm.org/D7078
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 12 Oct 2019 12:41:53 -0700
parents c157356c03f7
children 5cb3e6f4e069
files contrib/automation/hgautomation/winrm.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/automation/hgautomation/winrm.py	Sat Oct 12 11:36:26 2019 -0700
+++ b/contrib/automation/hgautomation/winrm.py	Sat Oct 12 12:41:53 2019 -0700
@@ -55,7 +55,7 @@
 
     try:
         o = str(o)
-    except TypeError:
+    except (AttributeError, TypeError):
         o = pprint.pformat(o.extended_properties)
 
     return o