JungDev / django-telegrambot

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

Fail on initialization error #15

Closed alephyud closed 6 years ago

alephyud commented 6 years ago

An error message is logged when some of the user apps contain a telegrambot.py module that cannot be imported correctly (see #13).

If STRICT_INIT in settings.DJANGO_TELEGRAMBOT is set to True (recommended), the app will terminate if some of the telegrambot.py files cannot be imported.

codecov-io commented 6 years ago

Codecov Report

Merging #15 into master will increase coverage by 10.97%. The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master      #15       +/-   ##
===========================================
+ Coverage   31.39%   42.37%   +10.97%     
===========================================
  Files           8        8               
  Lines         293      295        +2     
===========================================
+ Hits           92      125       +33     
+ Misses        201      170       -31
Impacted Files Coverage Δ
django_telegrambot/apps.py 53.51% <100%> (+17.44%) :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 5e8a1b7...e6109c5. Read the comment docs.