Skip to content

Commit eb9021e

Browse files
Refactor auto backup. (#267)
1 parent 7a342a6 commit eb9021e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/admin.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,6 @@ def routine(no_backup=False):
262262
logger.warning("Schedule lock acquired by another process. No need to run it in this process.")
263263
except Exception as e:
264264
logger.error(f"An error occurred during the routine: {e}")
265-
if lock_acquired:
266-
_lock.release()
267-
return
268265
finally:
269266
if lock_acquired:
270267
_lock.release()

0 commit comments

Comments
 (0)