Fix formatting

This commit is contained in:
Matthias 2021-12-11 20:08:03 +01:00
parent 8fdef2900e
commit 39f0a17e62
2 changed files with 4 additions and 3 deletions

View File

@ -1184,7 +1184,7 @@ class Telegram(RPCHandler):
Handler for /bl_delete
Deletes pair(s) from current blacklist
"""
self.send_blacklist_msg(self._rpc._rpc_blacklist_delete(context.args))
self.send_blacklist_msg(self._rpc._rpc_blacklist_delete(context.args or []))
@authorized_only
def _logs(self, update: Update, context: CallbackContext) -> None:
@ -1265,8 +1265,8 @@ class Telegram(RPCHandler):
"*/whitelist:* `Show current whitelist` \n"
"*/blacklist [pair]:* `Show current blacklist, or adds one or more pairs "
"to the blacklist.` \n"
"*/blacklist_delete [pairs]| /bl_delete [pairs]:* `Delete pair / pattern from blacklist. "
"Will reset on reload_conf.` \n"
"*/blacklist_delete [pairs]| /bl_delete [pairs]:* "
"`Delete pair / pattern from blacklist. Will reset on reload_conf.` \n"
"*/reload_config:* `Reload configuration file` \n"
"*/unlock <pair|id>:* `Unlock this Pair (or this lock id if it's numeric)`\n"

View File

@ -987,6 +987,7 @@ def test_api_blacklist(botclient, mocker):
"errors": {},
}
def test_api_whitelist(botclient):
ftbot, client = botclient