Learn more about these different git repos.
Other Git URLs
5131929
@@ -4982,7 +4982,11 @@
result = result.strip()
# clear the exception, since we're just using
# it for display purposes
- sys.exc_clear()
+ try:
+ sys.exc_clear()
+ except AttributeError:
+ # sys.exc_clear() is obsolete in Python 3
+ pass
if not result:
result = 'Unknown'
sys.exc_clear() does not exist in Python 3
Fixes: #1641
:thumbsup:
@breilly - Can you just adjust commit message to reference #1461?
Metadata Update from @tkopecek: - Pull-request tagged with: testing-ready
ping @breilly
rebased onto 5131929
Commit 9d2faca fixes this pull-request
Pull-Request has been merged by tkopecek
sys.exc_clear() does not exist in Python 3