athphane / userbot

Do not use bare except, specify exception instead FLK-E722
Bug risk
Minor
6 months ago4 years old
do not use bare 'except'
39
40            try:
41                await message.edit("```Making a Quote\nProcessing {}%```".format(progress))
42            except:43                await message.edit("ERROR")
44
45    if msg_id := msg[0]['message_id']:
do not use bare 'except'
28            msg = await bot.get_history("@QuotLyBot", 1)
29            print(msg)
30            is_sticker = True
31        except:32            await sleep(1)
33
34            progress += random.randint(0, 5)