def get_tag(name, session):
 try:
  return session.query(ArchiveTag).filter((ArchiveTag.name == name)).one()
 except NoResultFound:
  source = ArchiveTag(name)
  return source

def get_tag ( name , session ) : try : return session . query ( ArchiveTag ) . filter ( ( ArchiveTag . name == name ) ) . one ( ) except NoResultFound : source = ArchiveTag ( name ) return source
return the magic tag for .