fix logging of snapshot errors
This commit is contained in:
		@ -369,9 +369,9 @@ def main():
 | 
			
		||||
        try:
 | 
			
		||||
            if remote in remote_snapshots:
 | 
			
		||||
                remote_snapshots[remote] = zsnaplib.get_snapshots(zfs_cmd)
 | 
			
		||||
        except zsnaplib.ZFSSnapshotError:
 | 
			
		||||
        except zsnaplib.ZFSSnapshotError as e:
 | 
			
		||||
            del remote_snapshots[remote]
 | 
			
		||||
            log.warning("Could not refresh snapshots on {}".format(remote))
 | 
			
		||||
            log.warning("Could not refresh snapshots on {}: {}".format(remote, e))
 | 
			
		||||
    snapshots = zsnaplib.get_snapshots(local_zfs_cmd)
 | 
			
		||||
 | 
			
		||||
    failed_send = send_snapshots(fslist, snapshots, config)
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user