Delete AirQuality.i2m if it fails to create.

This commit is contained in:
April 2022-10-24 00:56:15 -07:00
parent 0db804a31a
commit 73c67bebb4
No known key found for this signature in database
GPG Key ID: 17A9A017FAA4DE5E

View File

@ -97,6 +97,7 @@ def writeData():
except Exception as e: except Exception as e:
l.error("DO NOT REPORT THE ERROR BELOW") l.error("DO NOT REPORT THE ERROR BELOW")
l.error("Failed to write an AirQuality record.") l.error("Failed to write an AirQuality record.")
os.remove('./.temp/AirQuality.i2m')
else: else:
l.info("Not writing an AirQuality record due to a lack of working EPA ids.") l.info("Not writing an AirQuality record due to a lack of working EPA ids.")