Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run file delete inside try-except #27

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Run file delete inside try-except #27

wants to merge 1 commit into from

Conversation

ritvje
Copy link
Member

@ritvje ritvje commented Oct 29, 2024

Sometimes when deleting old granules in the radar data production, the file gets deleted by some other cleaning process after the os.path.exists(fs_path), and so the os.remove(fs_path) fails. I don't think we want the whole process to fail because of this, so this try-except should fix that.

Copy link

codecov bot commented Oct 29, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 94.54%. Comparing base (33786f4) to head (f1daff8).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
georest/__init__.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #27      +/-   ##
==========================================
- Coverage   94.56%   94.54%   -0.03%     
==========================================
  Files           4        4              
  Lines         976      972       -4     
==========================================
- Hits          923      919       -4     
  Misses         53       53              
Flag Coverage Δ
unittests 94.54% <0.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant