summaryrefslogtreecommitdiffstats
path: root/module/remote/json_converter.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/remote/json_converter.py')
-rw-r--r--module/remote/json_converter.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/remote/json_converter.py b/module/remote/json_converter.py
index 76a0d5935..ad7645ccc 100644
--- a/module/remote/json_converter.py
+++ b/module/remote/json_converter.py
@@ -9,12 +9,13 @@ except ImportError:
import ttypes
from ttypes import BaseObject
+from ttypes import ExceptionObject
# json encoder that accepts TBase objects
class BaseEncoder(json.JSONEncoder):
def default(self, o):
- if isinstance(o, BaseObject):
+ if isinstance(o, BaseObject) or isinstance(o, ExceptionObject):
ret = {"@class" : o.__class__.__name__}
for att in o.__slots__:
ret[att] = getattr(o, att)