Fix startup for plugins without webapp

This commit is contained in:
Tulir Asokan 2019-12-28 16:11:47 +02:00
parent 169aece027
commit 8687a3b591
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
__version__ = "0.1.0.dev29" __version__ = "0.1.0.dev30"

View File

@ -50,7 +50,7 @@ class Plugin(ABC):
self.config = config self.config = config
self.database = database self.database = database
self.webapp = webapp self.webapp = webapp
self.webapp_url = URL(webapp_url) self.webapp_url = URL(webapp_url) if webapp_url else None
self._handlers_at_startup = [] self._handlers_at_startup = []
def register_handler_class(self, obj) -> None: def register_handler_class(self, obj) -> None: