Skip to content

Commit 5de9b37

Browse files
committed
Fix flake8
1 parent 28faf86 commit 5de9b37

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tasks/analysis.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,15 +329,16 @@ def process_impact_result(self, impact_url, analysis_id):
329329
if ext in ['.shp', '.tif']:
330330
# process this in the for loop to make sure it works only
331331
# when we found the layer
332-
success = process_impact_layer(analysis, basename, dir_name, name)
332+
success = process_impact_layer(
333+
analysis, basename, dir_name, name)
333334
break
334335

335336
# cleanup
336337
for name in zf.namelist():
337338
filepath = os.path.join(dir_name, name)
338339
try:
339340
os.remove(filepath)
340-
except:
341+
except BaseException:
341342
pass
342343
else:
343344
# It means it is accessing an shp or tif directly

0 commit comments

Comments
 (0)