mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Catch proper exception in backup_list (fix #65)
This commit is contained in:
parent
934eaced21
commit
404d0fc185
1 changed files with 1 additions and 1 deletions
|
@ -298,7 +298,7 @@ def backup_list():
|
||||||
try:
|
try:
|
||||||
# Retrieve local archives
|
# Retrieve local archives
|
||||||
archives = os.listdir(archives_path)
|
archives = os.listdir(archives_path)
|
||||||
except IOError as e:
|
except OSError as e:
|
||||||
logging.info("unable to iterate over local archives: %s", str(e))
|
logging.info("unable to iterate over local archives: %s", str(e))
|
||||||
else:
|
else:
|
||||||
# Iterate over local archives
|
# Iterate over local archives
|
||||||
|
|
Loading…
Add table
Reference in a new issue