From 2c62820ddc933d63494d54c2be0cdfffc2ff5195 Mon Sep 17 00:00:00 2001 From: Julien Almarcha Date: Mon, 19 Oct 2020 09:37:13 +0200 Subject: [PATCH] ignore ssl error --- ISFinder_search.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ISFinder_search.py b/ISFinder_search.py index 5eeb2c4..949dfd5 100755 --- a/ISFinder_search.py +++ b/ISFinder_search.py @@ -104,13 +104,14 @@ def search_ISfinder(potential_sequence): data = {'title' : 'test', 'seq' : potential_sequence, 'seqfile' \ : '', 'database' : 'ISfindernt', 'prog' : 'blastn', 'blast' \ : 'ok', 'alignment' : '7', 'wordsize' : '11','expect' : '10.0' \ - , 'gapcost' : '5 2'}) + , 'gapcost' : '5 2'}, + verify=False) ##get url result parser = URLParser() parser.feed(r.text) ##downoad blast result - o = requests.get('https://www-is.biotoul.fr/blast/' + parser.urlres) + o = requests.get('https://www-is.biotoul.fr/blast/' + parser.urlres, verify=False) parser = BlastParser() parser.feed(o.text) return parser.result