Commit de923697 authored by Bruno Duyé's avatar Bruno Duyé

let Python 3.6 down to be compatible with Debian Stretch (for preprod tests)

parent 955e5e58
......@@ -50,6 +50,7 @@ DOWNLOAD_TABLE_URL = "http://servicios.ine.es/wstempus/js/en/DATOS_TABLA/{}?tip=
log = logging.getLogger(__name__)
def main():
global log
global requests_session
......@@ -82,7 +83,7 @@ def main():
try:
json_answer = download_table(table_code)
except:
error = f"Exception while downloading \"old\" dataset {table_code}"
error = "Exception while downloading \"old\" dataset {}".format(table_code)
log.exception(error)
errors_artifact.add_dataset_error(table_code, error)
continue
......@@ -101,7 +102,8 @@ def main():
try:
json_answer = download_table(table_code)
except:
error = f"Exception while downloading dataset '{table_dict['name']}' (code: {table_code}, path: {' -> '.join(path)})"
error = "Exception while downloading dataset '{}' (code: {}, path: {})".format(
table_dict['name'], table_code, ' -> '.join(path))
log.exception(error)
errors_artifact.add_dataset_error(table_code, error)
continue
......
Markdown is supported
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