ehForwarderBot / efb-telegram-master

EFB Telegram Master Channel, a channel for EH Forwarder Bot.
GNU Affero General Public License v3.0
223 stars 79 forks source link

some bugs reported from ehforwarderbot #92

Closed EthanWng97 closed 4 years ago

EthanWng97 commented 4 years ago
AttributeError("type object 'MsgLog' has no attribute 'get_or_none'")
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/efb_telegram_master/slave_message.py", line 116, in send_message
    self.dispatch_message(msg, msg_template, old_msg_id, tg_dest, silent)
  File "/usr/local/lib/python3.7/site-packages/efb_telegram_master/slave_message.py", line 220, in dispatch_message
    self.db.add_or_update_message_log(etm_msg, tg_msg, old_msg_id)
  File "/usr/local/lib/python3.7/site-packages/efb_telegram_master/db.py", line 401, in add_or_update_message_log
    r = MsgLog.get_or_none(MsgLog.master_msg_id == master_msg_id)
AttributeError: type object 'MsgLog' has no attribute 'get_or_none'
blueset commented 4 years ago

This method does exist on Peewee (API docs). I couldn't reproduce this on my local environment.

Can you try to upgrade your peewee and see if the issue persists?

EthanWng97 commented 4 years ago

after upgrading peewee, the problem solved. Thx bro