Index: components/test/data/password_manager/automated_tests/environment.py |
diff --git a/components/test/data/password_manager/automated_tests/environment.py b/components/test/data/password_manager/automated_tests/environment.py |
index fd52754e3b6f496511dca781c3adb8fbb4a355aa..3743465043ecce0ab5f6406774b6206e0215058b 100644 |
--- a/components/test/data/password_manager/automated_tests/environment.py |
+++ b/components/test/data/password_manager/automated_tests/environment.py |
@@ -288,7 +288,12 @@ class Environment: |
getattr(websitetest, test_case_name)() |
except Exception as e: |
successful = False |
- error = e.message |
+ # httplib.CannotSendRequest doesn't define a message, |
+ # so type(e).__name__ will at least log exception name as a reason. |
+ # TODO(melandory): logging.exception(e) produces meaningful result |
+ # for httplib.CannotSendRequest, so we can try to propagate information |
+ # that reason is an exception to the logging phase. |
+ error = "Exception %s %s" % (type(e).__name__, e) |
self.tests_results.append( |
(websitetest.name, test_case_name, successful, error)) |