fix add Jobs backend
This commit is contained in:
parent
994f65c38b
commit
eb0e54714b
|
@ -24,8 +24,9 @@ def dict_get(self, key, default=None, type=None):
|
|||
if type is not None:
|
||||
try:
|
||||
rv = type(rv)
|
||||
except ValueError:
|
||||
except (ValueError, TypeError):
|
||||
rv = default
|
||||
|
||||
return rv
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue