fix: 增加 TypeError 捕获

This commit is contained in:
Bai
2023-07-11 10:19:31 +08:00
committed by Bryan
parent daeba109fd
commit fb286f4665

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)