forked from coop-cloud/backup-bot-two
add spaces for missing snapshot, fixes #45
This commit is contained in:
parent
65686cd891
commit
0c587ac926
@ -259,9 +259,9 @@ def list_files(snapshot, path):
|
||||
output = restic.internal.command_executor.execute(cmd)
|
||||
except ResticFailedError as error:
|
||||
if 'no snapshot found' in str(error):
|
||||
err_msg = f'There is no snapshot {snapshot}'
|
||||
err_msg = f'There is no snapshot "{snapshot}"'
|
||||
if SERVICE:
|
||||
err_msg += f'for the app {SERVICE}'
|
||||
err_msg += f' for the app "{SERVICE}"'
|
||||
logger.error(err_msg)
|
||||
exit(1)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user