Skip to content

Commit dd4c0f0

Browse files
ileyjh0ker
authored andcommitted
Add missing return statement in timerbot example (python-telegram-bot#368)
1 parent 555e36e commit dd4c0f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/timerbot.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def set(bot, update, args, job_queue):
4747
due = int(args[0])
4848
if due < 0:
4949
bot.sendMessage(chat_id, text='Sorry we can not go back to future!')
50+
return
5051

5152
# Add job to queue
5253
job = Job(alarm, due, repeat=False, context=chat_id)

0 commit comments

Comments
 (0)