Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Except change

  • Loading branch information...
commit 88ad82466bd6a600431465328aa0b8d88a91f94b 1 parent acc5f1b
@LuqueDaniel authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 minecraft_backup/core/backup_manager.py
View
8 minecraft_backup/core/backup_manager.py
@@ -90,12 +90,16 @@ def make_backup(self, dst, backup_name):
mkdir(dst)
try:
+ self.make_backup_continue = True
copy_backup_files(GAME_PATH, dst)
except IOError:
+ self.make_backup_continue = False
self.emit(SIGNAL('IOdenied()'))
+ rmtree(dst)
- self.save_backup_list(backup_name, dst)
- self.emit(SIGNAL('makeend()'))
+ if self.make_backup_continue is True:
+ self.save_backup_list(backup_name, dst)
+ self.emit(SIGNAL('makeend()'))
def save_backup_list(self, backup_name, path):
"""This function create and save backup list"""
Please sign in to comment.
Something went wrong with that request. Please try again.