From 3d137aefad4bba9f79908ea70ecce134cb42be82 Mon Sep 17 00:00:00 2001 From: SDE Date: Tue, 9 Jul 2024 16:09:01 +0300 Subject: [PATCH] 1.4.5 move pay_system sets to settings --- BaseModels/pay_systems/DVL_Group_kaz/api/funcs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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