Permalink
Browse files

Fixed possible KeyError: 'blob_backup_location'.

  • Loading branch information...
mauritsvanrees committed Nov 13, 2012
1 parent 6ac6259 commit 44fc042a4aa078f398531f3db8fa64b6038271d1
Showing with 4 additions and 2 deletions.
  1. +3 −1 CHANGES.rst
  2. +1 −1 src/collective/recipe/backup/main.py
View
@@ -1,7 +1,9 @@
2.8 (unreleased)
================
-- Nothing changed yet.
+- Fixed possible KeyError: 'blob_backup_location'.
+ https://github.com/collective/collective.recipe.backup/issues/3
+ [maurits]
2.7 (2012-09-27)
@@ -27,11 +27,11 @@ def backup_main(bin_dir, storages, keep, full,
return
for storage in storages:
blobdir = storage['blobdir']
- blob_backup_location = storage['blob_backup_location']
if not blobdir:
logger.info("No blob dir defined for %s storage" % \
(storage['storage']))
continue
+ blob_backup_location = storage['blob_backup_location']
logger.info("Please wait while backing up blobs from %s to %s",
blobdir, blob_backup_location)
copyblobs.backup_blobs(blobdir, blob_backup_location, full,

0 comments on commit 44fc042

Please sign in to comment.