From ac171f160fe1923ccef834e01bc5fd7974f291ef Mon Sep 17 00:00:00 2001 From: Jeffrey Tang Date: Tue, 9 Apr 2024 16:16:28 -0500 Subject: [PATCH] noqa --- server/lorax_server/utils/sources/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/lorax_server/utils/sources/__init__.py b/server/lorax_server/utils/sources/__init__.py index d7317fec7..0f3720062 100644 --- a/server/lorax_server/utils/sources/__init__.py +++ b/server/lorax_server/utils/sources/__init__.py @@ -50,7 +50,7 @@ def map_pbase_model_id_to_s3(model_id: str, api_token: str) -> str: # Try to retrieve data using the new endpoint. resp = requests.get(url, headers=headers) resp.raise_for_status() - except: + except: # ruff: noqa E722 # Not found in new path, fall back to legacy endpoint. resp = requests.get(legacy_url, headers=headers) resp.raise_for_status()