From f72f033465d3a688745963f803554bbd15ad72b7 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Wed, 4 May 2022 15:25:36 +0200 Subject: [PATCH] fix flake8 --- hub/kojihub.py | 4 ++-- hub/kojixmlrpc.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hub/kojihub.py b/hub/kojihub.py index 51de92e8..a456d589 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 fa969766..a662cc0b 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