# HG changeset patch # User Gregory Szorc # Date 2019-10-12 19:41:53 # Node ID 6a350194de7f29d4f9dda183ab6df1d210bd58ff # Parent c157356c03f7c3113ebf36daf9c739a1693e8d5d automation: capture additional exception when formatting I started encountering this for some reason. Differential Revision: https://phab.mercurial-scm.org/D7078 diff --git a/contrib/automation/hgautomation/winrm.py b/contrib/automation/hgautomation/winrm.py --- a/contrib/automation/hgautomation/winrm.py +++ b/contrib/automation/hgautomation/winrm.py @@ -55,7 +55,7 @@ def format_object(o): try: o = str(o) - except TypeError: + except (AttributeError, TypeError): o = pprint.pformat(o.extended_properties) return o