def get_conf(self, varname):
        try:
            return self.items(varname)
        except NoSectionError:
            raise ConanException("Invalid configuration, missing %s" % varname)
Test to ensure you can dynamically create an Exception route attached to a hug API
dataset/ETHPy150Open conan-io/conan/conans/client/conf/__init__.py/ConanClientConfigParser.get_conf--crossover with--dataset/ETHPy150Open timothycrosley/hug/tests/test_route.py/TestAPIRouter.test_exception