From b83bec17b1103b9fb2551238516bc1820f1630eb Mon Sep 17 00:00:00 2001 From: tazlin Date: Sat, 11 Nov 2023 13:19:10 -0500 Subject: [PATCH] style: lint catchup --- examples/lora_downloader.py | 6 +++--- examples/run_sdk_inference_example.py | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/lora_downloader.py b/examples/lora_downloader.py index ea7dcbc1..13453106 100644 --- a/examples/lora_downloader.py +++ b/examples/lora_downloader.py @@ -220,16 +220,16 @@ def _download_thread(self): break logger.debug(f"Downloaded LORA file for {lora['filename']} didn't match hash") - pass # we will retry + # we will retry except (requests.HTTPError, requests.ConnectionError, requests.Timeout, json.JSONDecodeError) as e: logger.debug(f"Error downloading {lora['filename']} {e}") - pass # we will retry + # we will retry except Exception as e: # Failed badly, ignore logger.debug(f"Fatal error downloading {lora['filename']} {e}") - pass # we will retry + # we will retry retries += 1 logger.debug(f"Retry of LORA file download for {lora['filename']}") diff --git a/examples/run_sdk_inference_example.py b/examples/run_sdk_inference_example.py index 444447d0..1e69921b 100644 --- a/examples/run_sdk_inference_example.py +++ b/examples/run_sdk_inference_example.py @@ -32,7 +32,6 @@ def main(): ) horde.basic_inference(example_response) - pass if __name__ == "__main__":