From f703a77fc9d44e1a2718a4c26a507973f3bf976d Mon Sep 17 00:00:00 2001 From: Cqoicebordel Date: Tue, 10 Feb 2015 18:44:49 +0100 Subject: Photon's unit test As in Flickr, a continue is not detected by coverage as covered but it is. --- searx/engines/photon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searx/engines/photon.py') diff --git a/searx/engines/photon.py b/searx/engines/photon.py index 16340d24a..a9c558c4b 100644 --- a/searx/engines/photon.py +++ b/searx/engines/photon.py @@ -61,7 +61,7 @@ def response(resp): continue # get title - title = properties['name'] + title = properties.get('name') # get osm-type if properties.get('osm_type') == 'N': -- cgit v1.2.3