fallback to str
parent
365d54c2f2
commit
a3494c764e
|
@ -106,7 +106,7 @@ def encode(o):
|
||||||
elif isinstance(o, JsObject):
|
elif isinstance(o, JsObject):
|
||||||
return o._id
|
return o._id
|
||||||
else:
|
else:
|
||||||
return o
|
return str(o)
|
||||||
|
|
||||||
class JsBlock:
|
class JsBlock:
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
|
|
Loading…
Reference in New Issue