Skip to content

Commit da1510a

Browse files
Remove leftover json.load code from line 187
1 parent 0534362 commit da1510a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codecarbon/core/emissions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def get_private_infra_emissions(self, energy: Energy, geo: GeoMetadata) -> float
184184
if geo.region is not None and geo.region.upper() in nordic_regions:
185185
try:
186186
# Get Nordic energy mix data from cache
187-
nordic_data = self._data_source.get_nordic_country_energy_mix_data() nordic_data = json.load(f)
187+
nordic_data = self._data_source.get_nordic_country_energy_mix_data()
188188
region_data = nordic_data["data"].get(geo.region.upper())
189189
if region_data:
190190
emission_factor_g = region_data["emission_factor"] # gCO2eq/kWh

0 commit comments

Comments
 (0)