kaif-00z / AutoAnimeBot

Upload Ongoing Animes... Automatically
https://t.me/+q_OBZiXjkBFkYzk0
GNU General Public License v3.0
79 stars 120 forks source link

I keep getting this error #15

Closed titu3e closed 2 months ago

titu3e commented 2 months ago

image

09/09/2024, 06:06:00 || AutoAnimeBot [INFO] : Successfully Connected to Firebase Database
09/09/2024, 06:06:01 || AutoAnimeBot [INFO] : Succesfully Sync Database!!!
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/apscheduler/schedulers/base.py", line 900, in _create_plugin_instance
    plugin_cls = class_container[alias]
KeyError: 'corn'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/app/bot.py", line 40, in <module>
    schedule = ScheduleTasks(bot)
  File "/usr/src/app/functions/schedule.py", line 43, in __init__
    self.sch.add_job(self.restart, "corn", hour=2, minute=1)  # 2:01 AM IST
  File "/usr/local/lib/python3.10/site-packages/apscheduler/schedulers/base.py", line 424, in add_job
    'trigger': self._create_trigger(trigger, trigger_args),
  File "/usr/local/lib/python3.10/site-packages/apscheduler/schedulers/base.py", line 925, in _create_trigger
    return self._create_plugin_instance('trigger', trigger, trigger_args)
  File "/usr/local/lib/python3.10/site-packages/apscheduler/schedulers/base.py", line 908, in _create_plugin_instance
    raise LookupError('No {0} by the name "{1}" was found'.format(type_, alias))
LookupError: No trigger by the name "corn" was found
kaif-00z commented 2 months ago

Thanks For Raising The Issue.

https://github.com/kaif-00z/AutoAnimeBot/commit/962959535486ad259dbf83c845ceb7a3695a1d9c

Fixed Now!!