Skip to content

Commit

Permalink
Fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
lucernae committed Dec 4, 2017
1 parent 28faf86 commit 5de9b37
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tasks/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,15 +329,16 @@ def process_impact_result(self, impact_url, analysis_id):
if ext in ['.shp', '.tif']:
# process this in the for loop to make sure it works only
# when we found the layer
success = process_impact_layer(analysis, basename, dir_name, name)
success = process_impact_layer(
analysis, basename, dir_name, name)
break

# cleanup
for name in zf.namelist():
filepath = os.path.join(dir_name, name)
try:
os.remove(filepath)
except:
except BaseException:
pass
else:
# It means it is accessing an shp or tif directly
Expand Down

0 comments on commit 5de9b37

Please sign in to comment.