diff --git a/Zero-Tool/ip-lookup.py b/Zero-Tool/ip-lookup.py index c0f8e8d..9b341ac 100644 --- a/Zero-Tool/ip-lookup.py +++ b/Zero-Tool/ip-lookup.py @@ -22,5 +22,7 @@ def print_phone_details(phone_details): phone_number = input(Fore.MAGENTA+"Enter the phone number to locate: ") -phone_details = phone_locator(phone_number, api_key) -print_phone_details(phone_details) \ No newline at end of file +if len(phone_details) <= 1: + print(Fore.RED+f"Error message: {phone_details['message']}") +else: + print_phone_details(phone_details)