From 4a448b8623e550110ad47df50415b4382ca255d3 Mon Sep 17 00:00:00 2001 From: Ashok Prajapat Date: Fri, 20 Dec 2024 09:24:25 +0000 Subject: [PATCH] lint fixed --- scripts/world_bank/datasets/datasets.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/world_bank/datasets/datasets.py b/scripts/world_bank/datasets/datasets.py index 01574a51d..0793fb4cb 100644 --- a/scripts/world_bank/datasets/datasets.py +++ b/scripts/world_bank/datasets/datasets.py @@ -152,7 +152,7 @@ def download_datasets(): pool.starmap(download, zip(download_urls)) logging.info('# files downloaded: %s', len(download_urls)) - # While downloading from source there is multiple files which may not be required so below exception can be ignored. + # While downloading from source there is multiple files which may not be required so below exception can be ignored. # Verifying if all the required files have been generated after writing the output files except Exception as e: logging.error("Error downloading %s", exc_info=e) @@ -304,7 +304,7 @@ def load_json(url, params, response_file): json.dump(response.json(), f, indent=2) return True except Exception as e: - logging.info("Http error %s",e) + logging.info("Http error %s", e) return None @@ -438,7 +438,9 @@ def get_codes_from_zip(zip_file): return codes return {} except Exception as e: - logging.info("There is some problem in processing the file %s File name is: %s",e,zipfile) + logging.info( + "There is some problem in processing the file %s File name is: %s", + e, zipfile) def write_csv(csv_file_path, csv_columns, csv_rows): @@ -532,7 +534,7 @@ def get_observations_from_zip(zip_file, svs): return obs_csv_rows # Exception can be ignored as there might be some corrupted zip files from source except Exception as e: - logging.info("There is problem while processing the zip file: %s",e) + logging.info("There is problem while processing the zip file: %s", e) return []