diff --git a/redash/utils/__init__.py b/redash/utils/__init__.py index 2fc39564e5..f03767606c 100644 --- a/redash/utils/__init__.py +++ b/redash/utils/__init__.py @@ -74,11 +74,7 @@ class JSONEncoder(json.JSONEncoder): """Adapter for `json.dumps`.""" def __init__(self, **kwargs): - self.encoders = [ - m.custom_json_encoder - for m in sys.modules.values() - if hasattr(m, "custom_json_encoder") - ] + self.encoders = [m.custom_json_encoder for m in sys.modules.values() if hasattr(m, "custom_json_encoder")] super().__init__(**kwargs) def default(self, o):