#1642 Handle sys.exc_clear in Python 3
Merged 2 years ago by tkopecek. Opened 2 years ago by breilly.
breilly/koji exc-clear-1641  into  master

file modified
+5 -1
@@ -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

@breilly - Can you just adjust commit message to reference #1461?

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

2 years ago

rebased onto 5131929

2 years ago

Commit 9d2faca fixes this pull-request

Pull-Request has been merged by tkopecek

2 years ago