From 68ca20db8f44751c367c2e30513ec9d6342ec83a Mon Sep 17 00:00:00 2001 From: Olivier MEDOC Date: Tue, 10 Jan 2017 16:45:32 +0100 Subject: [PATCH] fix to use the new pycountry API --- bin/Web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/Web.py b/bin/Web.py index 49790185..0fae546d 100755 --- a/bin/Web.py +++ b/bin/Web.py @@ -113,7 +113,7 @@ if __name__ == "__main__": # IP allocation) if cc is not None and cc != "EU": print hostl, asn, cc, \ - pycountry.countries.get(alpha2=cc).name + pycountry.countries.get(alpha_2=cc).name if cc == cc_critical: to_print = 'Url;{};{};{};Detected {} {}'.format( PST.p_source, PST.p_date, PST.p_name,