mirror of
https://github.com/weewx/weewx.git
synced 2026-04-21 18:17:01 -04:00
Catches exception weewx.ArchiveError and keeps going.
This commit is contained in:
@@ -370,9 +370,12 @@ class StdArchive(StdService):
|
||||
def newArchivePacket(self, archivePacket):
|
||||
"""Add a new archive record to the SQL archive and stats databases."""
|
||||
|
||||
# Add the new record to the archive database and stats database:
|
||||
self.archive.addRecord(archivePacket)
|
||||
self.statsDb.addArchiveRecord(archivePacket)
|
||||
try:
|
||||
# Add the new record to the archive database and stats database:
|
||||
self.archive.addRecord(archivePacket)
|
||||
self.statsDb.addArchiveRecord(archivePacket)
|
||||
except weewx.ArchiveError:
|
||||
pass
|
||||
|
||||
def processArchiveData(self):
|
||||
"""Retrieves that last timestamp in the database, then posts that time to the engine"""
|
||||
|
||||
Reference in New Issue
Block a user