fix #1737: MakeFastAPIOffline函数内代码编写错误
This commit is contained in:
parent
01577d6264
commit
1ac173958d
|
|
@ -194,7 +194,7 @@ def MakeFastAPIOffline(
|
||||||
index = i
|
index = i
|
||||||
break
|
break
|
||||||
if isinstance(index, int):
|
if isinstance(index, int):
|
||||||
app.routes.pop(i)
|
app.routes.pop(index)
|
||||||
|
|
||||||
# Set up static file mount
|
# Set up static file mount
|
||||||
app.mount(
|
app.mount(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue