mirror of https://github.com/jumpserver/jumpserver
fix: 增加 TypeError 捕获
parent
daeba109fd
commit
fb286f4665
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue