Quick fix NoneType

This commit is contained in:
Florian Kellermann
2022-05-13 11:59:11 +02:00
parent e25c51d21a
commit 56bb9908d1
2 changed files with 6 additions and 1 deletions

View File

@@ -208,7 +208,7 @@ def send_status(message):
bot.reply_to(message, "bot is running")
@bot.message_handler(commands=['portfolio', 'Portfolio']) # /update -> update shares
@bot.message_handler(commands=['portfolio', 'Portfolio']) # /portfolio -> print all owned shares
def update_for_user(message):
p_user_id = int(message.from_user.id)
p_my_handler = api_handler