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

qr code not generated #6

Open
Nawkyooo opened this issue May 5, 2023 · 1 comment
Open

qr code not generated #6

Nawkyooo opened this issue May 5, 2023 · 1 comment

Comments

@Nawkyooo
Copy link

Nawkyooo commented May 5, 2023

image

qr_code = div.find('img')['src']
TypeError: 'NoneType' object is not subscriptable

@Nawkyooo
Copy link
Author

Nawkyooo commented May 5, 2023

2023-05-05 12:49:40 ERROR discord.ext.commands.bot Ignoring exception in command verify
Traceback (most recent call last):
File "C:\Users\mathd\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 229, in wrapped
ret = await coro(*args, **kwargs)
File "C:\Users\mathd\Desktop\Discord-QR-Grabber-Bot-main\main.py", line 83, in verify
qr_code = div.find('img')['src']
TypeError: 'NoneType' object is not subscriptable

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

Traceback (most recent call last):
File "C:\Users\mathd\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\bot.py", line 1349, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\mathd\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 1023, in invoke
await injected(*ctx.args, **ctx.kwargs) # type: ignore
File "C:\Users\mathd\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 238, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: 'NoneType' object is not subscriptable

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