fix: 增加 TypeError 捕获

pull/11000/head
Bai 2023-07-11 10:19:31 +08:00 committed by Bryan
parent daeba109fd
commit fb286f4665
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class DatabaseScheduler(DJDatabaseScheduler):
"""
self._schedule[name].save()
_tried.add(name)
except (KeyError, ObjectDoesNotExist):
except (KeyError, TypeError, ObjectDoesNotExist):
_failed.add(name)
except DatabaseError as exc:
logger.exception('Database error while sync: %r', exc)