14 self.tts = aiogTTS()
15
16 async def to_bytes(self, url):
17 async with bot.session.get(url) as r:18 res = await r.read()
19 return res
20
12 source, after=lambda e: print("Player error: %s" % e) if e else None
13 )
14 else:
15 dance_loop.stop() 16
17 def __init__(self, bot):
18 self.bot = bot
The variable name is not defined where it is used. This will lead to an error during the runtime. Make sure there is no typo. If the name was supposed to be imported, verify that you've actually imported the name.
import os.path
if os.path.exits('setup.cfg'): # misspelled `exists`
print('Found config file')
import os.path
if os.path.exists('setup.cfg'):
print('Found config file')