Skip to content

TypeError: expected string or bytes-like object #308

Open
@alonelove7

Description

@alonelove7

Hello
for command : /m link -u x -p y

Error log:
[02-Apr-25 01:34:49 AM] [INFO] - http://xx.k-l.x/dl2/%5BAWHT%5D%20Overlord%20Sei%20Oukoku-hen%20%5B1080p%5D.mkv
[02-Apr-25 01:34:49 AM] [INFO] - No Direct link function found for http://xx.k-l.cxxd/dl2/%5BAWHT%5D%20Overlord%20Sei%20Oukoku-hen%20%5B1080p%5D.mkv
[02-Apr-25 01:34:49 AM] [ERROR] - Task exception was never retrieved
future: <Task finished name='Task-1228' coro=<_mirror_leech() done, defined at /usr/src/app/bot/modules/mirror_leech.py:77> exception=TypeError('expected string or bytes-like object')>
Traceback (most recent call last):
File "/usr/src/app/bot/modules/mirror_leech.py", line 498, in mirror_leech
elif is_rclone_path(link):
File "/usr/src/app/bot/helper/ext_utils/bot_utils.py", line 471, in is_rclone_path
return bool(re_match(r'^(mrcc:)?(?!magnet:)(?![- ])[a-zA-Z0-9
. -]+(?<! ):(?!.//).$|^rcl$', path))
File "/usr/lib/python3.10/re.py", line 190, in match
return _compile(pattern, flags).match(string)
TypeError: expected string or bytes-like object

for last version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions