Skip to content

Commit

Permalink
[IMP] auto_backup: remove redundant opening of file_path
Browse files Browse the repository at this point in the history
  • Loading branch information
Yenthe666 authored Dec 19, 2023
1 parent e83ece8 commit f2bfd35
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion auto_backup/models/db_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ def schedule_backup(self):
# Create name for dumpfile.
bkp_file = '%s_%s.%s' % (time.strftime('%Y_%m_%d_%H_%M_%S'), rec.name, rec.backup_type)
file_path = os.path.join(rec.folder, bkp_file)
fp = open(file_path, 'wb')
try:
# try to backup database and write it away
fp = open(file_path, 'wb')
Expand Down

0 comments on commit f2bfd35

Please sign in to comment.