Skip to content

Commit

Permalink
fix: unbind on unload
Browse files Browse the repository at this point in the history
  • Loading branch information
hugo-gomes authored Jun 6, 2024
1 parent 2c1361a commit 9dc0f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/appier_extras/parts/preflight/part.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def load(self):
def unload(self):
appier.Part.unload(self)

self.owner.bind("before_request", self._handler)
self.owner.unbind("before_request", self._handler)

def _handler(self):
if not self.owner.request.method == "OPTIONS":
Expand Down

0 comments on commit 9dc0f60

Please sign in to comment.