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:
|
if type is not None:
|
||||||
try:
|
try:
|
||||||
rv = type(rv)
|
rv = type(rv)
|
||||||
except ValueError:
|
except (ValueError, TypeError):
|
||||||
rv = default
|
rv = default
|
||||||
|
|
||||||
return rv
|
return rv
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue