Skip to content

Commit e5b6a48

Browse files
authored
Update mapper.py
1 parent f70a850 commit e5b6a48

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ckanext/csvwmapandtransform/mapper.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ def post_request(url, headers, data, files=None):
2121

2222
except requests.exceptions.RequestException as e:
2323
# placeholder for save file / clean-up
24-
raise SystemExit(e) from None
24+
pass
25+
#raise SystemExit(e) from None
2526
return response
2627

2728
# def get_request(url, headers, data, files=None):
@@ -78,4 +79,4 @@ def get_joined_rdf(map_url: str, data_url: str, authorization: None):
7879
print("applied {} mapping rules and skipped {}".format(r['num_mappings_applied'],r['num_mappings_skipped']))
7980
return filename, r['graph'], r['num_mappings_applied'], r['num_mappings_skipped']
8081
else:
81-
toolkit.abort(status_code=r.status_code,detail="could not apply mapping {} to data at {}".format(map_url,data_url))
82+
toolkit.abort(status_code=r.status_code,detail="could not apply mapping {} to data at {}".format(map_url,data_url))

0 commit comments

Comments
 (0)