Skip to content

Commit

Permalink
remove completion file at noon
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Nov 1, 2023
1 parent 3c8bef0 commit 0369b26
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions py/desitransfer/daily.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,13 @@ def main():
"""
status = 0
options = _options()
if options.debug:
print(f"DEBUG: os.remove('{options.completion}')")
try:
os.remove(options.completion)
except FileNotFoundError:
pass
if options.timeframe == 'noon':
if options.debug:
print(f"DEBUG: os.remove('{options.completion}')")
try:
os.remove(options.completion)
except FileNotFoundError:
pass
if os.path.exists(options.kill):
print(f"INFO: {options.kill} detected, shutting down daily {options.timeframe} transfer script.")
return 0
Expand Down

0 comments on commit 0369b26

Please sign in to comment.