Patchwork D7078: automation: capture additional exception when formatting

login
register
mail settings
Submitter phabricator
Date Oct. 14, 2019, 5:09 p.m.
Message ID <0a7b8baf65b5e6aa5d4153e3a40351ae@localhost.localdomain>
Download mbox | patch
Permalink /patch/42323/
State Not Applicable
Headers show

Comments

phabricator - Oct. 14, 2019, 5:09 p.m.
Closed by commit rHG6a350194de7f: automation: capture additional exception when formatting (authored by indygreg).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7078?vs=17119&id=17139

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7078/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7078

AFFECTED FILES
  contrib/automation/hgautomation/winrm.py

CHANGE DETAILS




To: indygreg, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

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