#NEWLINE# def safe_find_sr( session ) : #NEWLINE# #INDENT# 'Same as _find_sr except raises a NotFound exception if SR cannot be\n    determined\n    ' #NEWLINE# sr_ref = _find_sr ( session ) #NEWLINE# if ( sr_ref is None ) : #NEWLINE# #INDENT# raise exception . StorageRepositoryNotFound ( ) #NEWLINE# #UNINDENT# return sr_ref