Fix/fix trace provider delete err (#20070)

This commit is contained in:
heyszt 2025-05-21 23:51:42 +08:00 committed by GitHub
parent d31235ca13
commit 02929b2cce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: