#NEWLINE# def safe_fixture_upload( domain , file_ref , replace , task = None ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return do_fixture_upload ( domain , file_ref , replace , task ) #NEWLINE# #UNINDENT# except FixtureUploadError as e : #NEWLINE# #INDENT# result = FixtureUploadResult ( ) #NEWLINE# result . success = False #NEWLINE# result . errors . append ( unicode ( e ) ) #NEWLINE# return result