URLHandler.unload: Fix check for handler_name being set

This commit is contained in:
Jean-Sebastien Trottier 2020-09-25 22:26:27 -04:00
parent d845e837df
commit 352fdfe279
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ class URLHandler(Plugin):
def unload(self):
"""Handle being removed"""
if not self.match:
if not self.handler_name:
err('unload called without self.handler_name being set')
return
terminator = Terminator()