diff --git a/python/subunit/__init__.py b/python/subunit/__init__.py index 04e07f7..8a3a2f8 100644 --- a/python/subunit/__init__.py +++ b/python/subunit/__init__.py @@ -575,7 +575,7 @@ def _handleTime(self, offset, line): event_time = iso8601.parse_date(line[offset:-1].decode()) except TypeError: raise TypeError(_u("Failed to parse %r, got %r") - % (line, sys.exec_info[1])) + % (line, sys.exc_info()[1])) self.client.time(event_time) def lineReceived(self, line):