mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix: handle context-dependent feature flags in CLI (#12088)
This commit is contained in:
@@ -46,7 +46,12 @@ feature_flags.update(config.FEATURE_FLAGS)
|
||||
feature_flags_func = config.GET_FEATURE_FLAGS_FUNC
|
||||
if feature_flags_func:
|
||||
# pylint: disable=not-callable
|
||||
feature_flags = feature_flags_func(feature_flags)
|
||||
try:
|
||||
feature_flags = feature_flags_func(feature_flags)
|
||||
except Exception: # pylint: disable=broad-except
|
||||
# bypass any feature flags that depend on context
|
||||
# that's not available
|
||||
pass
|
||||
|
||||
|
||||
def normalize_token(token_name: str) -> str:
|
||||
|
||||
Reference in New Issue
Block a user