def get(self,id): try: market = Market.get(Market.id == id) except Exception as e: print(e) abort(404,message="Not found") else: return market