mirror of
https://github.com/mewtek/i2ME-Legacy.git
synced 2025-05-12 01:10:24 -05:00
Delete AirQuality.i2m if it fails to create.
This commit is contained in:
parent
0db804a31a
commit
73c67bebb4
@ -97,6 +97,7 @@ def writeData():
|
||||
except Exception as e:
|
||||
l.error("DO NOT REPORT THE ERROR BELOW")
|
||||
l.error("Failed to write an AirQuality record.")
|
||||
os.remove('./.temp/AirQuality.i2m')
|
||||
else:
|
||||
l.info("Not writing an AirQuality record due to a lack of working EPA ids.")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user