From f72f033465d3a688745963f803554bbd15ad72b7 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: May 04 2022 13:25:36 +0000 Subject: fix flake8 --- diff --git a/hub/kojihub.py b/hub/kojihub.py index 51de92e..a456d58 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -15516,11 +15516,11 @@ def handle_upload(environ): logger.error(f"Error reading upload. Offset {offset}+{size}, path {fn}") if 'timeout' in str_e: logger.exception("Timed out reading input stream. " - f"Content-Length: {context.environ.get('CONTENT_LENGTH')}") + f"Content-Length: {context.environ.get('CONTENT_LENGTH')}") raise RequestTimeout(str_e) else: logger.exception("Error reading input stream. " - f"Content-Length: {context.environ.get('CONTENT_LENGTH')}") + f"Content-Length: {context.environ.get('CONTENT_LENGTH')}") raise BadRequest(str_e) if not chunk: break diff --git a/hub/kojixmlrpc.py b/hub/kojixmlrpc.py index fa96976..a662cc0 100644 --- a/hub/kojixmlrpc.py +++ b/hub/kojixmlrpc.py @@ -219,12 +219,12 @@ class ModXMLRPCRequestHandler(object): except OSError as e: str_e = str(e) if 'timeout' in str_e: - self.logger.exception("Timed out reading input stream. " - f"Content-Length: {context.environ.get('CONTENT_LENGTH')}") + self.logger.exception("Timed out reading input stream. Content-Length: " + f"{context.environ.get('CONTENT_LENGTH')}") raise RequestTimeout(str_e) else: - self.logger.exception("Error reading input stream. " - f"Content-Length: {context.environ.get('CONTENT_LENGTH')}") + self.logger.exception("Error reading input stream. Content-Length: " + f"{context.environ.get('CONTENT_LENGTH')}") raise BadRequest(str_e) if not chunk: break