Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not working #15

Open
avtar312 opened this issue May 11, 2022 · 0 comments
Open

not working #15

avtar312 opened this issue May 11, 2022 · 0 comments

Comments

@avtar312
Copy link

Bot is online
Ignoring exception in on_message
Traceback (most recent call last):
File "C:\Users\nitin\AppData\Roaming\Python\Python38\site-packages\discord\ext\commands\core.py", line 179, in wrapped
ret = await coro(args, **kwargs)
File "C:\Users\nitin\OneDrive\New folder\bot\EinsteinBot\cogs\main.py", line 35, in search
answerRaw = await cheinsteinpy.answer(url, self.cookie, self.userAgent)
File "C:\Users\nitin\AppData\Roaming\Python\Python38\site-packages\cheinsteinpy\api.py", line 47, in answer
htmlRaw = requestPage.requestChapter(url, cookieStr, userAgent, htmlData)
File "C:\Users\nitin\AppData\Roaming\Python\Python38\site-packages\cheinsteinpy\requestPage.py", line 42, in requestChapter
chapter_id = str(re.search(r'?id=(\d+).
?isbn', html).group(1))
AttributeError: 'NoneType' object has no attribute 'group'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\nitin\AppData\Roaming\Python\Python38\site-packages\discord\client.py", line 352, in _run_event
await coro(*args, **kwargs)
File "C:\Users\nitin\AppData\Roaming\Python\Python38\site-packages\discord\ext\commands\bot.py", line 375, in on_message
await self.process_commands(message)
File "C:\Users\nitin\AppData\Roaming\Python\Python38\site-packages\discord\ext\commands\bot.py", line 372, in process_commands
await self.invoke(ctx)
File "C:\Users\nitin\AppData\Roaming\Python\Python38\site-packages\discord\ext\commands\bot.py", line 339, in invoke
await ctx.command.dispatch_error(ctx, exc)
File "C:\Users\nitin\AppData\Roaming\Python\Python38\site-packages\discord\ext\commands\core.py", line 537, in dispatch_error
await injected(cog, ctx, error)
File "C:\Users\nitin\AppData\Roaming\Python\Python38\site-packages\discord\ext\commands\core.py", line 165, in wrapped
ret = await coro(*args, **kwargs)
File "C:\Users\nitin\OneDrive\New folder\bot\EinsteinBot\cogs\main.py", line 122, in searchError
raise error
File "C:\Users\nitin\AppData\Roaming\Python\Python38\site-packages\discord\ext\commands\bot.py", line 335, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\nitin\AppData\Roaming\Python\Python38\site-packages\discord\ext\commands\core.py", line 916, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "C:\Users\nitin\AppData\Roaming\Python\Python38\site-packages\discord\ext\commands\core.py", line 188, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'NoneType' object has no attribute 'group'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant