#472 Fix flake8
Merged 4 years ago by gnaponie. Opened 4 years ago by gnaponie.
gnaponie/greenwave fixflake8  into  master

Fix flake8
gnaponie • 4 years ago  
file modified
+1 -1
@@ -133,7 +133,7 @@ 

      try:

          proxy = xmlrpc.client.ServerProxy(koji_url)

          build = proxy.getBuild(nvr)

-     except (xmlrpc.client.ProtocolError, socket.error)  as err:

+     except (xmlrpc.client.ProtocolError, socket.error) as err:

          raise ConnectionError('Could not reach Koji: {}'.format(err))

      return retrieve_scm_from_koji_build(nvr, build, koji_url)

  

@@ -19,7 +19,9 @@ 

      (ConnectTimeout('TIMEOUT'), 502, 'TIMEOUT'),

      (Timeout('TIMEOUT'), 504, 'TIMEOUT'),

      (InternalServerError(), 500, 'The server encountered an internal error'),

-     (urllib3.exceptions.MaxRetryError('MAX_RETRY', '.../gating.yaml'), 502, 'There was an error retrieving the gating.yaml file at .../gating.yaml')

+     (urllib3.exceptions.MaxRetryError(

+         'MAX_RETRY', '.../gating.yaml'), 502, ('There was an error retrieving the'

+                                                'gating.yaml file at .../gating.yaml'))

Hmm, OK, but this is terrible indentation. :)

(It will break if the line above changes.)

  ])

  def test_json_connection_error(error, expected_status_code,

                                 expected_error_message_part):

Hmm, OK, but this is terrible indentation. :)

(It will break if the line above changes.)

Commit 3dc6af3 fixes this pull-request

Pull-Request has been merged by gnaponie

4 years ago

Pull-Request has been merged by gnaponie

4 years ago