Quick fix NoneType
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user