AbirHasan2005 / Rename-Bot

A Very Simple Telegram Files Rename Bot by @AbirHasan2005
142 stars 485 forks source link

Attribute Error #24

Open zoredeaxx opened 1 year ago

zoredeaxx commented 1 year ago
  1. I am getting following error while trying to rename :-

Traceback (most recent call last): File "/home/runner/Rename-Bot/bot/plugins/rename.py", line 93, in rename_handler await handle_big_rename(c, m, file_id, file_name, editable, file_type) File "/home/runner/Rename-Bot/bot/core/handlers/big_rename.py", line 68, in handle_big_rename thumb_path = await fix_thumbnail(thumb_path) File "/home/runner/Rename-Bot/bot/core/fixes.py", line 10, in fix_thumbnail metadata = extractMetadata(createParser(thumb_path)) File "/opt/virtualenvs/python3/lib/python3.8/site-packages/hachoir/parser/guess.py", line 139, in createParser stream.close() File "/opt/virtualenvs/python3/lib/python3.8/site-packages/hachoir/stream/input.py", line 415, in close self._input.close() AttributeError: 'InputPipe' object has no attribute 'close'

  1. Any help in resolving the issue is highly appreciated.