Skip to content

Commit

Permalink
let rem_active_handler succeed for handlers that arent in the list
Browse files Browse the repository at this point in the history
  • Loading branch information
rfk committed Mar 4, 2011
1 parent f11cda3 commit 643e70f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion m2wsgi/device/dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,10 @@ def add_active_handler(self,handler):
self.active_handlers.add_target(handler)

def rem_active_handler(self,handler):
self.active_handlers.rem_target(handler)
try:
self.active_handlers.rem_target(handler)
except (KeyError,):
pass

def is_active_handler(self,handler):
return self.active_handlers.has_target(handler)
Expand Down

0 comments on commit 643e70f

Please sign in to comment.