My code is fine and even everything is fine but at the end when i tried to run the code then console is blank for hours i dont know what to do
I want that my code run fine and no such errors or bug in future
I doesn’t actually run it just shows a blank screen and i cant able to do any coding because of this.
Just fix my console blank screen error and everything will be fine
https://replit.com/@SavageBoy4/bot?s=app
It is same on pc, mobile, basically everywhere i run the code.
Hi! Two things:
- You may want to fix these errors, I got them when running your project
Traceback (most recent call last):
File "main.py", line 49, in <module>
client.run(os.getenv('TOKEN'))
File "/home/runner/bOeeis6UoYZ/venv/lib/python3.10/site-packages/discord/client.py", line 723, in run
return future.result()
File "/home/runner/bOeeis6UoYZ/venv/lib/python3.10/site-packages/discord/client.py", line 702, in runner
await self.start(*args, **kwargs)
File "/home/runner/bOeeis6UoYZ/venv/lib/python3.10/site-packages/discord/client.py", line 665, in start
await self.login(*args, bot=bot)
File "/home/runner/bOeeis6UoYZ/venv/lib/python3.10/site-packages/discord/client.py", line 511, in login
await self.http.static_login(token.strip(), bot=bot)
AttributeError: 'NoneType' object has no attribute 'strip'
- I’m not a Python expert, but generally a blank screen means that either the program is running on low resources, an infinite loop is occuring, or some statements are not working as intended. Try checking your code for these issues.