diff --git a/bin/weewx/wxengine.py b/bin/weewx/wxengine.py index 4f66b4f1..3176b525 100644 --- a/bin/weewx/wxengine.py +++ b/bin/weewx/wxengine.py @@ -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"""