diff --git a/BaseModels/pay_systems/DVL_Group_kaz/api/funcs.py b/BaseModels/pay_systems/DVL_Group_kaz/api/funcs.py index 91a3753..a79fefd 100644 --- a/BaseModels/pay_systems/DVL_Group_kaz/api/funcs.py +++ b/BaseModels/pay_systems/DVL_Group_kaz/api/funcs.py @@ -100,11 +100,13 @@ def create_order(data): ) msg = f'create_order answer received = {str(res)}' - if res: + if res and res.status_code > 300: msg += f' > ({str(res.text)})' print(msg) except Exception as e: msg = f'Exception create_order POST {url} = {str(e)} ({str(res)})' + if res: + msg += f' > ({str(res.text)})' print(msg) res = None