Fix/fix trace provider delete err (#20070)

pull/19751/head
heyszt 11 months ago committed by GitHub
parent d31235ca13
commit 02929b2cce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save