From a3494c764e04782f38a2720a4f1a147570dd1fd2 Mon Sep 17 00:00:00 2001 From: inpos Date: Fri, 17 Aug 2018 17:57:55 +0300 Subject: [PATCH] fallback to str --- orun/js.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orun/js.py b/orun/js.py index 55e571a..5e299c1 100644 --- a/orun/js.py +++ b/orun/js.py @@ -106,7 +106,7 @@ def encode(o): elif isinstance(o, JsObject): return o._id else: - return o + return str(o) class JsBlock: def __init__(self, *args, **kwargs):