JungDev / django-telegrambot

Simple app for Telegram bot in Django
BSD 3-Clause "New" or "Revised" License
237 stars 88 forks source link

Fix error on startup when using MESSAGEQUEUE_ENABLED #35

Closed Nachtalb closed 3 years ago

Nachtalb commented 5 years ago

MQBot's first argument is the message queue but the token was sent to it. And in addition to that, the message queue was set via the keyword argument mqueue. This resulted in a:

TypeError: __init__() got multiple values for argument 'mqueue'
codecov-io commented 5 years ago

Codecov Report

Merging #35 into master will not change coverage. The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #35   +/-   ##
=======================================
  Coverage   41.84%   41.84%           
=======================================
  Files           9        9           
  Lines         325      325           
=======================================
  Hits          136      136           
  Misses        189      189
Impacted Files Coverage Δ
django_telegrambot/apps.py 52.02% <0%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 55aa268...6f2fe6f. Read the comment docs.