randydev commited on
Commit
90d2a86
·
verified ·
1 Parent(s): 8c76445

Update Akeno/plugins/eval.py

Browse files
Files changed (1) hide show
  1. Akeno/plugins/eval.py +3 -1
Akeno/plugins/eval.py CHANGED
@@ -19,6 +19,7 @@ from pyrogram import *
19
  from pyrogram import Client as ren
20
  from pyrogram import Client
21
  from pyrogram import Client as app
 
22
 
23
  from pyrogram.raw import *
24
  from pyrogram.raw.types import *
@@ -116,9 +117,10 @@ async def evaluation_cmd_t(client: Client, message: Message):
116
  redirected_output = sys.stdout = io.StringIO()
117
  redirected_error = sys.stderr = io.StringIO()
118
  stdout, stderr, exc = None, None, None
119
-
120
  try:
121
  await aexec(cmd, client, message)
 
 
122
  except Exception:
123
  exc = traceback.format_exc()
124
 
 
19
  from pyrogram import Client as ren
20
  from pyrogram import Client
21
  from pyrogram import Client as app
22
+ from pyrogram.errors import *
23
 
24
  from pyrogram.raw import *
25
  from pyrogram.raw.types import *
 
117
  redirected_output = sys.stdout = io.StringIO()
118
  redirected_error = sys.stderr = io.StringIO()
119
  stdout, stderr, exc = None, None, None
 
120
  try:
121
  await aexec(cmd, client, message)
122
+ except ImageProcessFailed:
123
+ return await status_message.edit("Error ImageProcessFailed")
124
  except Exception:
125
  exc = traceback.format_exc()
126