[fix] Catch proper exception in backup_list (fix #65)

This commit is contained in:
Jérôme Lebleu 2015-06-05 11:26:46 +02:00
parent 934eaced21
commit 404d0fc185

View file

@ -298,7 +298,7 @@ def backup_list():
try:
# Retrieve local archives
archives = os.listdir(archives_path)
except IOError as e:
except OSError as e:
logging.info("unable to iterate over local archives: %s", str(e))
else:
# Iterate over local archives