D7078: automation: capture additional exception when formatting
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Sat Oct 12 20:56:44 UTC 2019
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
I started encountering this for some reason.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D7078
AFFECTED FILES
contrib/automation/hgautomation/winrm.py
CHANGE DETAILS
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 @@
try:
o = str(o)
- except TypeError:
+ except (AttributeError, TypeError):
o = pprint.pformat(o.extended_properties)
return o
To: indygreg, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list