Skip to content

Repeating job AttributeError #1031

@alexbagirov

Description

@alexbagirov

Hi!

I'm having a small def which is a repeating job, the code actually looks like this:

dp = updater.dispatcher
j = updater.job_queue
j.run_repeating(rss, 300)

After upgrading to 10.0.0 I get an exception in logs.

Configuration

Operating System: Ubuntu

Version of Python, python-telegram-bot & dependencies:

python-telegram-bot 10.0.0
certifi 2018.01.18
future 0.16.0
Python 3.6.3 (default, Oct 6 2017, 08:44:35)

Logs

AttributeError: 'NoneType' object has no attribute 'schedule_removal'
[03-03 23:51:50] [ERROR] [bot]
An uncaught error was raised while processing the update
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/telegram/ext/dispatcher.py", line 279, in process_update
    handler.handle_update(update, self)
  File "/usr/local/lib/python3.6/dist-packages/telegram/ext/conversationhandler.py", line 309, in handle_update
    timeout_job.schedule_removal()
AttributeError: 'NoneType' object has no attribute 'schedule_removal'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions