def _bad_copy(bad_request):
 err_msg = bad_request.message
 return (err_msg.startswith('No file found in request. (POST') and ('copyTo' in err_msg))

def _bad_copy ( bad_request ) : err_msg = bad_request . message return ( err_msg . startswith ( 'No file found in request. (POST' ) and ( 'copyTo' in err_msg ) )
predicate: pass only exceptions for a failed copyto .