fix
This commit is contained in:
parent
3a54981b4d
commit
b06395edaf
6
main.py
6
main.py
@ -101,10 +101,10 @@ def msg_shell(update: Update, context: CallbackContext) -> None:
|
||||
|
||||
buf = '[stdout] ' + result.stdout.decode('utf-8')
|
||||
buf += '\n[stderr] ' + result.stderr.decode('utf-8')
|
||||
reply(update, buf)
|
||||
reply(update, escape(buf))
|
||||
except Exception as e:
|
||||
logging.exception(str(e))
|
||||
reply(update, 'exception: ' + str(e))
|
||||
reply(update, 'exception: ' + escape(str(e)))
|
||||
|
||||
|
||||
def msg_spawn(update: Update, context: CallbackContext) -> None:
|
||||
@ -113,7 +113,7 @@ def msg_spawn(update: Update, context: CallbackContext) -> None:
|
||||
os.spawnlp(os.P_NOWAIT, argv[0], *argv)
|
||||
except Exception as e:
|
||||
logging.exception(str(e))
|
||||
reply(update, 'exception: ' + str(e))
|
||||
reply(update, 'exception: ' + escape(str(e)))
|
||||
|
||||
|
||||
def msg_generation(update: Update, context: CallbackContext) -> None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user