Skip to content
Snippets Groups Projects
Commit 08b2187b authored by Robert Goldmann's avatar Robert Goldmann
Browse files

errors in backup should not prevent operations

parent ec2da461
No related branches found
No related tags found
No related merge requests found
......@@ -36,10 +36,13 @@ class BackupService:
return self._numberOfModifications >= self._maxModifications
def backup(self):
try:
LOGGER.info('Running backup...')
uploader = OwncloudUploader(self._owncloudHost, self._owncloudUser, self._owncloudPassword)
uploader.upload(self._owncloudDestinationPath, self._fileToBackup)
self.__reset()
except Exception:
LOGGER.exception('Error performing backup')
def perform_modification(self):
self._numberOfModifications += 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment