From d52037a6a3aa8a24bb6d7cff88a889519193fc82 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 30 Aug 2018 18:06:46 +0100 Subject: [PATCH] use assure_call for trakt.py and lastfm.py --- modules/lastfm.py | 2 +- modules/trakt.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/lastfm.py b/modules/lastfm.py index 56da9b29..e8a2545e 100644 --- a/modules/lastfm.py +++ b/modules/lastfm.py @@ -9,7 +9,7 @@ class Module(object): self.bot = bot bot.events.on("postboot").on("configure").on( - "set").call(setting="lastfm", + "set").assure_call(setting="lastfm", help="Set username on last.fm") bot.events.on("received").on("command").on("np", diff --git a/modules/trakt.py b/modules/trakt.py index 39a039c3..b3c36d3d 100644 --- a/modules/trakt.py +++ b/modules/trakt.py @@ -14,7 +14,7 @@ class Module(object): "on trakt.tv", usage="[username]") bot.events.on("postboot").on("configure").on("set" - ).call(setting="trakt", help="Set username on trakt.tv") + ).assure_call(setting="trakt", help="Set username on trakt.tv") def now_watching(self, event): if event["args"]: