def call_insert(tup):
 try:
  (cache, key, files, overwrite) = tup
  return cache.insert(key, files, overwrite)
 except NonfatalArtifactCacheError as e:
  logger.warn(u'Error while inserting into artifact cache: {0}'.format(e))
  return False

def call_insert ( tup ) : try : ( cache , key , files , overwrite ) = tup return cache . insert ( key , files , overwrite ) except NonfatalArtifactCacheError as e : logger . warn ( u'Error while inserting into artifact cache: {0}' . format ( e ) ) return False
importable helper for multi-proc calling of artifactcache .