Skip to content

Commit

Permalink
fix: split error when tg_user_name is None
Browse files Browse the repository at this point in the history
  • Loading branch information
hlf20010508 committed Feb 20, 2024
1 parent 801b8d1 commit 279ae69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
tg_api_hash = os.environ["tg_api_hash"]
tg_user_phone = os.environ["tg_user_phone"]
tg_user_password = os.environ.get("tg_user_password", None)
tg_user_name = os.environ.get("tg_user_name", None).split(',')
tg_user_name = os.environ.get("tg_user_name", None)
if tg_user_name:
tg_user_name = tg_user_name.split(',')
# telegram bot
tg_bot_token = os.environ["tg_bot_token"]
# onedrive
Expand Down

0 comments on commit 279ae69

Please sign in to comment.