Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_intermediate_file(filepath, target):
try:
stingray_object = DaveReader.get_stingray_object(filepath)
if stingray_object:
filename = FileUtils.get_intermediate_filename(target, filepath, HEN_FILE_EXTENSION)
if DaveReader.save_to_intermediate_file(stingray_object, filename):
return filename
except:
logging.error(ExHelper.getException('get_intermediate_file'))
return None