#NEWLINE# def get_archive_last_seen( self , vault , ref ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# result = self . _get_archive_query_by_ref ( vault , ref ) . one ( ) #NEWLINE# #UNINDENT# except sqlalchemy . orm . exc . NoResultFound : #NEWLINE# #INDENT# raise KeyError ( ref ) #NEWLINE# #UNINDENT# return ( self . last_seen_upstream or result . created_here )