From ddd1f4bcd511e51b73e4b5123c699b734965bdcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Tue, 9 Dec 2014 09:37:39 -0500 Subject: [PATCH] keep the Location tag even if unknown so display is more consistent --- ip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ip.py b/ip.py index 0a9f77c013..cc3524b76b 100644 --- a/ip.py +++ b/ip.py @@ -109,7 +109,7 @@ def ip(bot, trigger): try: response += " | Location: %s" % gi_city.country_name_by_name(query) except AttributeError: - pass + response += ' | Location: Unknown' region_data = gi_city.region_by_name(query) try: