Skip to content
Snippets Groups Projects
Commit d279fb2c authored by Pierre Dittgen's avatar Pierre Dittgen
Browse files

Fix linter issues

parent 919166a8
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,6 @@ See also `.gitlab-ci.yml` in which data is committed to a Git repository of conv
import argparse
import csv
import json
import logging
import shutil
import sys
......@@ -437,7 +436,7 @@ def main():
except KeyboardInterrupt:
return
except:
except Exception:
log.exception("Error while generating dataset")
ds_info = None
if ds_info is None:
......
......@@ -23,14 +23,17 @@
"""Download data from JHU."""
import argparse
import http.client
import json
import logging
import sys, os
import requests
import os
import sys
import zipfile
import json
from io import BytesIO
from zipfile import ZipFile
from pathlib import Path
from zipfile import ZipFile
import requests
# Download main FAO file
......@@ -99,7 +102,7 @@ def main():
logging.DEBUG if args.debug_http else logging.WARNING
)
if args.debug_http:
http.client.HTTPConnection.debuglevel = 1
http.client.HTTPConnection.set_debug_level(1)
target_dir = args.target_dir
if not target_dir.exists():
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment