From 0162c0d81704b5e29be49b54511785cea8a83a7e Mon Sep 17 00:00:00 2001 From: e-belfer Date: Tue, 17 Dec 2024 16:21:16 -0500 Subject: [PATCH] If no epacems_api_key, return none instead of an exception --- src/pudl_archiver/archivers/epacems.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pudl_archiver/archivers/epacems.py b/src/pudl_archiver/archivers/epacems.py index b97a0477..cd8464d6 100644 --- a/src/pudl_archiver/archivers/epacems.py +++ b/src/pudl_archiver/archivers/epacems.py @@ -61,7 +61,7 @@ class EpaCemsArchiver(AbstractDatasetArchiver): allowed_file_rel_diff = 0.35 # Set higher tolerance than standard base_url = "https://api.epa.gov/easey/bulk-files/" - parameters = {"api_key": os.environ["EPACEMS_API_KEY"]} # Set to API key + parameters = {"api_key": os.environ.get("EPACEMS_API_KEY")} # Set to API key def __filter_for_complete_metadata( self, files_responses: list[dict]