def find(self,key: str) -> str: db = Database() code = db.find(key) if code: return Code(code) raise CodeNotFound('Code element not found.')