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]