mirror of
https://github.com/apache/superset.git
synced 2026-04-25 02:55:07 +00:00
chore(pylint): Reenable raise-missing-from check (#16266)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
This commit is contained in:
@@ -333,10 +333,10 @@ def safe_proxy(func: Callable[..., Any], *args: Any, **kwargs: Any) -> Any:
|
||||
if value_type in COLLECTION_TYPES:
|
||||
try:
|
||||
return_value = json.loads(json.dumps(return_value))
|
||||
except TypeError:
|
||||
except TypeError as ex:
|
||||
raise SupersetTemplateException(
|
||||
_("Unsupported return value for method %(name)s", name=func.__name__,)
|
||||
)
|
||||
) from ex
|
||||
|
||||
return return_value
|
||||
|
||||
@@ -357,10 +357,10 @@ def validate_context_types(context: Dict[str, Any]) -> Dict[str, Any]:
|
||||
if arg_type in COLLECTION_TYPES:
|
||||
try:
|
||||
context[key] = json.loads(json.dumps(context[key]))
|
||||
except TypeError:
|
||||
except TypeError as ex:
|
||||
raise SupersetTemplateException(
|
||||
_("Unsupported template value for key %(key)s", key=key)
|
||||
)
|
||||
) from ex
|
||||
|
||||
return context
|
||||
|
||||
|
||||
Reference in New Issue
Block a user