fix_trace_config (#24669)

Co-authored-by: renming <renming@renmingdeMacBook-Air.local>
This commit is contained in:
mr0609andrenming authored and GitHub committed 2025-08-28 13:54:49 +08:00
1 parent 0d745c64d8
commit 30f2d756a7
1 file changed
+1 -1
+1 -1
View File
@@ -330,7 +330,7 @@ class OpsTraceManager:
except KeyError:
raise ValueError(f"Invalid tracing provider: {tracing_provider}")
else:
if tracing_provider is not None:
if tracing_provider is None:
raise ValueError(f"Invalid tracing provider: {tracing_provider}")
app_config: Optional[App] = db.session.query(App).where(App.id == app_id).first()