#1111 Don't retry if certificate is not readable
Merged 5 years ago by mikem. Opened 5 years ago by tkopecek.
tkopecek/koji issue1108  into  master

file modified
+4 -3
@@ -1931,9 +1931,10 @@ 

      # Using str(e) is slightly ugly, but the error stacks in python-requests

      # are way more ugly.

      errstr = str(e)

-     if ('certificate revoked' in errstr or

-             'certificate expired' in errstr or

-             'certificate verify failed' in errstr):

+     if ('Permission denied' in errstr or  # certificate not readable

+         'certificate revoked' in errstr or

+         'certificate expired' in errstr or

+         'certificate verify failed' in errstr):

          return True

  

      return False

Can you put an extra space before that inline comment so flake8 won't complain?

1 new commit added

  • fix comment indentation for flake8
5 years ago

Commit 41593d6 fixes this pull-request

Pull-Request has been merged by mikem

5 years ago