fix: since when str can't use is/is not
This commit is contained in:
parent
9ad1ce38ee
commit
b266a1a2df
3 changed files with 4 additions and 4 deletions
2
main.py
2
main.py
|
@ -35,7 +35,7 @@ def get_token() -> str:
|
|||
if os.getenv("BOT_TOKEN") is not None:
|
||||
return os.getenv("BOT_TOKEN")
|
||||
|
||||
if general.token is not "":
|
||||
if general.token != "":
|
||||
return general.token
|
||||
|
||||
print(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue