Skip to content

Commit 2e9ebbf

Browse files
fixed key error on geojson on hdx exports
1 parent 061dbbc commit 2e9ebbf

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

hdx_exports/hdx_export_set.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ def hdx_note(self, theme):
8787

8888
def datasets(self,is_private,subnational,data_update_frequency,locations,files,public_dir):
8989
HDX_FORMATS = {
90-
'geojson':'geojson',
90+
'GeoJSON':'geojson',
9191
'shp': 'SHP',
9292
'geopackage': 'Geopackage',
9393
'garmin_img': 'Garmin IMG',
9494
'kml': 'KML'
9595
}
9696

9797
HDX_DESCRIPTIONS = {
98-
'geojson': 'geojson',
98+
'GeoJSON': 'geojson',
9999
'shp':'ESRI Shapefile',
100100
'geopackage':'Geopackage, SQLite compatible',
101101
'garmin_img':'.IMG for Garmin GPS Devices (All OSM layers for area)',

tasks/task_runners.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ def run_task(self, job_uid=None, user=None, ondemand=True): # noqa
8585
# db.close_old_connections()
8686
run_task_async_ondemand.send(run_uid)
8787
else:
88+
# run_task_remote(run_uid)
89+
# db.close_old_connections()
8890
run_task_async_scheduled.send(run_uid)
8991
return run
9092

@@ -113,6 +115,8 @@ def run_task_remote(run_uid):
113115
try :
114116
run_task(run_uid,run,stage_dir,download_dir)
115117
except Exception as e:
118+
client.captureException(extra={'run_uid': run_uid})
119+
LOG.warn(traceback.format_exc())
116120
LOG.warn('ExportRun {0} failed: {1}'.format(run_uid, e))
117121
run.status = 'FAILED'
118122
run.finished_at = timezone.now()

0 commit comments

Comments
 (0)