Skip to content

Commit

Permalink
fix Bottle app initialization (#138)
Browse files Browse the repository at this point in the history
Bottle 0.13.0 requires Bottle instances to be initialized with
keyword arguments only. Previously, we were using a positional
argument. This usage was wrong (passing the __name__ string as
a catchall boolean parameter), so it's removed.
  • Loading branch information
contrast-jproberts authored Sep 5, 2024
1 parent c9a22f4 commit 3409f2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/bottle_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from vulnpy.bottle import add_vulnerable_routes


app = Bottle(__name__)
app = Bottle()
add_vulnerable_routes(app)


Expand Down
2 changes: 1 addition & 1 deletion tests/bottle/test_vulnerable.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

@pytest.fixture(scope="module")
def client():
app = Bottle(__name__)
app = Bottle()
add_vulnerable_routes(app)
return TestApp(app)

Expand Down

0 comments on commit 3409f2a

Please sign in to comment.