parent
944eab2e74
commit
fd36d02cd7
1 changed files with 1 additions and 1 deletions
|
@ -678,7 +678,7 @@ while True:
|
||||||
cntr = dock.containers.run('alpine:edge', "/bin/ash", detach=True, tty=True)
|
cntr = dock.containers.run('alpine:edge', "/bin/ash", detach=True, tty=True)
|
||||||
print("Executing...")
|
print("Executing...")
|
||||||
_, stream = cntr.exec_run(cmd=" ".join(command[1:]))
|
_, stream = cntr.exec_run(cmd=" ".join(command[1:]))
|
||||||
multiline(replace_color_codes(stream), channel)
|
multiline(replace_color_codes(stream.decode()), channel)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
irc.send_irc(channel, nick + ":[ERR] Traceback:")
|
irc.send_irc(channel, nick + ":[ERR] Traceback:")
|
||||||
multiline(traceback.format_exc(), channel)
|
multiline(traceback.format_exc(), channel)
|
||||||
|
|
Loading…
Add table
Reference in a new issue