Skip to content

Commit

Permalink
Fix startup for plugins without webapp
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Dec 28, 2019
1 parent 169aece commit 8687a3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion maubot/__meta__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.0.dev29"
__version__ = "0.1.0.dev30"
2 changes: 1 addition & 1 deletion maubot/plugin_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __init__(self, client: 'MaubotMatrixClient', loop: AbstractEventLoop, http:
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:
Expand Down

0 comments on commit 8687a3b

Please sign in to comment.