Commit 6d57d653 by Owo Sugiana

Tampilkan pesan kesalahan di log saat iso.process()

1 parent 9e7ee674
0.1.4 2020-04-21
----------------
- Tangkap pesan kesalahan saat iso.process() agar tampil di log
0.1.3 2020-01-16
----------------
- Tambah set_request()
......
import traceback
from io import StringIO
from time import time
from . import Doc
......@@ -43,7 +45,12 @@ class Job:
if from_iso.is_sign_on_request():
self.sign_on_time = time()
iso = self.create_iso(from_iso=from_iso)
iso.process()
try:
iso.process()
except:
with StringIO() as f:
traceback.print_exc(file=f)
iso.ack_other(f.getvalue())
return iso
# Dipanggil forwarder.py
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!