muhammedfurkan / TelethonUserBot

Undefined name detected PYL-E0602
Bug risk
Critical
3 years ago3 years old
Undefined variable 'ImageWriter'
48    bar_code_type = "code128"
49    try:
50        bar_code_mode_f = barcode.get(
51            bar_code_type, message, writer=ImageWriter())52        filename = bar_code_mode_f.save(bar_code_type)
53        await bot.send_file(
54            event.chat_id,
Undefined variable 'barcode'
47        message = "SYNTAX: `.barcode <long text to include>`"
48    bar_code_type = "code128"
49    try:
50        bar_code_mode_f = barcode.get(51            bar_code_type, message, writer=ImageWriter())
52        filename = bar_code_mode_f.save(bar_code_type)
53        await bot.send_file(
Undefined variable 'chatid'
49
50
51async def get_all_chats(chat_id):
52    return cli.find({'chat_id': chatid})
Undefined variable 'FloodWaitError'
 39            )
 40            try:
 41                await bot(functions.channels.EditBannedRequest(event.chat_id, i, rights))
 42            except FloodWaitError as ex: 43                logger.warn("sleeping for {} seconds".format(ex.seconds))
 44                sleep(ex.seconds)
 45            except Exception as ex:
Undefined variable 'humanbytes'
 69            "title": title,
 70            "hash": hash,
 71            "age": age,
 72            "size":  humanbytes(size), 73            "seeds": seeds,
 74            "peers": "NA"
 75        })