Bug fixed BPHTB saat tidak ada NTB

1 parent 7b6bd3c4
import sys
import pdb
from datetime import datetime, timedelta, date
from datetime import (
datetime,
timedelta,
date,
)
from ISO8583.ISOErrors import BitNotSet
from sqlalchemy import (
Column,
Integer,
......@@ -361,8 +366,12 @@ class App(BaseApp):
return '0000', channel, None, None
iso = get_iso(row.iso_request, Doc, self.option.debug)
info = get_channel_info_by_iso(iso)
return info.get('bit_018', '0000'), info['channel'], iso.get_stan(), \
iso.get_ntb()
try:
ntb = iso.get_ntb()
except BitNotSet:
ntb = None
channel_id = info.get('bit_018', '0000')
return channel_id, info['channel'], iso.get_stan(), ntb
def get_iso_v2(self):
if not self.base_q_log:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!