#NEWLINE# def error( self , errors ) : #NEWLINE# #INDENT# errors = [ { #NEWLINE# #INDENT# 'code' : code , #NEWLINE# 'message' : message , #NEWLINE# #UNINDENT# } for ( code , message ) in errors ] #NEWLINE# with self . graph . lock : #NEWLINE# #INDENT# checkpoint = self . graph . checkpoint #NEWLINE# checkpoint_time = self . graph . checkpoint_time #NEWLINE# self . write ( { #NEWLINE# #INDENT# 'status' : 'error' , #NEWLINE# 'errors' : errors , #NEWLINE# 'checkpoint' : checkpoint , #NEWLINE# 'checkpoint_time' : self , #NEWLINE# #UNINDENT# } )