From 37ace68b0eadcd66c99a0bc0d86eeb8ef2f34b51 Mon Sep 17 00:00:00 2001 From: Marko Bocevski Date: Thu, 8 Oct 2020 09:23:12 +0200 Subject: [PATCH] Document removal of ftp support due to switching to requests --- datapusher/jobs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datapusher/jobs.py b/datapusher/jobs.py index 3f6c309..2f7a555 100644 --- a/datapusher/jobs.py +++ b/datapusher/jobs.py @@ -348,9 +348,9 @@ def push_to_datastore(task_id, input, dry_run=False): # check scheme url = resource.get('url') scheme = urlsplit(url).scheme - if scheme not in ('http', 'https', 'ftp'): + if scheme not in ('http', 'https'): raise util.JobError( - 'Only http, https, and ftp resources may be fetched.' + 'Only http and https resources may be fetched.' ) # fetch the resource data