diff --git a/server/utils.py b/server/utils.py index 52125fe1..60307487 100644 --- a/server/utils.py +++ b/server/utils.py @@ -194,7 +194,7 @@ def MakeFastAPIOffline( index = i break if isinstance(index, int): - app.routes.pop(i) + app.routes.pop(index) # Set up static file mount app.mount(