fix: delete trace provider error

pull/20070/head
hieheihei 1 year ago
parent 7d230acf40
commit 45a32ec844

@ -291,10 +291,11 @@ class OpsTraceManager:
:return:
"""
# auth check
try:
provider_config_map[tracing_provider]
except KeyError:
raise ValueError(f"Invalid tracing provider: {tracing_provider}")
if tracing_provider is not None: # None
try:
provider_config_map[tracing_provider]
except KeyError:
raise ValueError(f"Invalid tracing provider: {tracing_provider}")
app_config: Optional[App] = db.session.query(App).filter(App.id == app_id).first()
if not app_config:

Loading…
Cancel
Save