From 8687a3b591f3f7ef69a1a4c319c4cc901ec90208 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 28 Dec 2019 16:11:47 +0200 Subject: [PATCH] Fix startup for plugins without webapp --- maubot/__meta__.py | 2 +- maubot/plugin_base.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/maubot/__meta__.py b/maubot/__meta__.py index 2c6a6e1..83a708f 100644 --- a/maubot/__meta__.py +++ b/maubot/__meta__.py @@ -1 +1 @@ -__version__ = "0.1.0.dev29" +__version__ = "0.1.0.dev30" diff --git a/maubot/plugin_base.py b/maubot/plugin_base.py index b0e9383..b2608c8 100644 --- a/maubot/plugin_base.py +++ b/maubot/plugin_base.py @@ -50,7 +50,7 @@ class Plugin(ABC): self.config = config self.database = database self.webapp = webapp - self.webapp_url = URL(webapp_url) + self.webapp_url = URL(webapp_url) if webapp_url else None self._handlers_at_startup = [] def register_handler_class(self, obj) -> None: