API refactor
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-10-07 16:25:52 +09:00
parent 76d0d86211
commit 91c7e04474
1171 changed files with 81940 additions and 44117 deletions

View File

@@ -1,6 +1,7 @@
"""The periodic task scheduler."""
import copy
import dbm
import errno
import heapq
import os
@@ -568,11 +569,11 @@ class PersistentScheduler(Scheduler):
for _ in (1, 2):
try:
self._store['entries']
except KeyError:
except (KeyError, UnicodeDecodeError, TypeError):
# new schedule db
try:
self._store['entries'] = {}
except KeyError as exc:
except (KeyError, UnicodeDecodeError, TypeError) + dbm.error as exc:
self._store = self._destroy_open_corrupted_schedule(exc)
continue
else: