def categories(): try: _category_results = Category.all() except Exception,e: current_app.logger.error(e);