Skip to content

Commit fdbc93c

Browse files
committed
fix processor_code is None
1 parent 7ad5e3b commit fdbc93c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

maxipago/resources/payment.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ def process(self):
1919
raise PaymentException(message=error_message)
2020

2121
processor_code = tree.find('processorCode')
22-
if processor_code.text.lower() == 'a':
22+
23+
if processor_code.text is not None and processor_code.text.lower() == 'a':
2324
self.approved = True
2425

2526
if self.approved:

0 commit comments

Comments
 (0)