Skip to content

Commit

Permalink
Removed tmp_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Sep 27, 2022
1 parent e1095f6 commit ff743a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lidar/filling.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,9 @@ def extract_sinks_by_huc8(
if error_file is not None:
with open(error_file, "a") as f:
f.write(huc8 + "\n")

if os.path.exists(tmp_dir):
shutil.rmtree(tmp_dir)
print(e)
return None

Expand Down

0 comments on commit ff743a9

Please sign in to comment.