From 530f41188596e1446e32e8cc39c629eee0cca858 Mon Sep 17 00:00:00 2001 From: qurbat Date: Wed, 18 May 2022 16:33:15 +0530 Subject: [PATCH] minor fixes --- upi-recon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/upi-recon.py b/upi-recon.py index 83673ab..3bc9fbc 100644 --- a/upi-recon.py +++ b/upi-recon.py @@ -79,9 +79,9 @@ def address_discovery(vpa, api_url): # if r.status_code == 200 and r.json()['success'] == False: # print('[-] ' + vpa + ' not a valid UPI address') # todo: store in dict by default and print if verbosity is set - else: + elif r.status_code != 200: print('[-] query failed for ' + vpa) - print('[!] "' + vpa + '" may not be a valid address') +# print('[!] "' + vpa + '" may not be a valid address') if __name__ == '__main__': @@ -151,4 +151,4 @@ def address_discovery(vpa, api_url): else: print('[!] please enter a valid argument') print('[!] usage: upi-recon.py -h for help') - exit(1) \ No newline at end of file + exit(1)