#31 fix python 2.6 incompatibility
Merged 7 years ago by clime. Opened 7 years ago by mbocek.
copr/ mbocek/copr fix_py26_incompatibility  into  master

file modified
+1 -1
@@ -207,7 +207,7 @@ 

              log.debug("raw response: {0}".format(response.text))

          except requests.ConnectionError as e:

              log.error(e)

-             raise CoprRequestException("Connection error {} {}".format(method.upper(), url))

+             raise CoprRequestException("Connection error {0} {1}".format(method.upper(), url))

  

          if "<title>Sign in Copr</title>" in response.text:

              raise CoprRequestException("Invalid API token\n")

  • python 2.6 format function does not support brackets {} without
    number in them

Thanks, this makes the build with srpm upload unusable on EL6.

Pull-Request has been merged by clime

7 years ago
Metadata