Skip to content

Commit

Permalink
Refactor auto backup. (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
everaldorodrigo authored Sep 24, 2024
1 parent 7a342a6 commit eb9021e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,6 @@ def routine(no_backup=False):
logger.warning("Schedule lock acquired by another process. No need to run it in this process.")
except Exception as e:
logger.error(f"An error occurred during the routine: {e}")
if lock_acquired:
_lock.release()
return
finally:
if lock_acquired:
_lock.release()
Expand Down

0 comments on commit eb9021e

Please sign in to comment.