#NEWLINE# def safe_destroy_vdis( session , vdi_refs ) : #NEWLINE# #INDENT# 'Tries to destroy the requested VDIs, but ignores any errors.' #NEWLINE# for vdi_ref in vdi_refs : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# destroy_vdi ( session , vdi_ref ) #NEWLINE# #UNINDENT# except exception . StorageError : #NEWLINE# #INDENT# LOG . debug ( 'Ignoring error while destroying VDI: %s' , vdi_ref )