Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Dec 16, 2021
1 parent 8fdef29 commit 39f0a17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions freqtrade/rpc/telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -1184,7 +1184,7 @@ def _blacklist_delete(self, update: Update, context: CallbackContext) -> None:
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:
Expand Down Expand Up @@ -1265,8 +1265,8 @@ def _help(self, update: Update, context: CallbackContext) -> None:
"*/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"

Expand Down
1 change: 1 addition & 0 deletions tests/rpc/test_rpc_apiserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -987,6 +987,7 @@ def test_api_blacklist(botclient, mocker):
"errors": {},
}


def test_api_whitelist(botclient):
ftbot, client = botclient

Expand Down

0 comments on commit 39f0a17

Please sign in to comment.