From db5d4d5158c9b842984216b4d8070f8bd036664d Mon Sep 17 00:00:00 2001 From: Michael H Date: Tue, 5 Jun 2018 15:59:42 -0400 Subject: [PATCH] [V3 launcher] token can be an empty string (#1794) * token can be an empty string * I like this sytlistically more --- redbot/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redbot/__main__.py b/redbot/__main__.py index e12fcc891..27030dabb 100644 --- a/redbot/__main__.py +++ b/redbot/__main__.py @@ -124,7 +124,7 @@ def main(): loop.run_until_complete(_get_prefix_and_token(red, tmp_data)) token = os.environ.get("RED_TOKEN", tmp_data["token"]) prefix = cli_flags.prefix or tmp_data["prefix"] - if token is None or not prefix: + if not (token and prefix): if cli_flags.no_prompt is False: new_token = interactive_config(red, token_set=bool(token), prefix_set=bool(prefix)) if new_token: