Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

give more detailed information when a library that is not a pyramid is

placed in pyramid.includes
  • Loading branch information...
commit 85e9e4ec161c5f9c6040f9e2b5ba4a666f1f09de 1 parent 58d0c2d
@sontek authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 pyramid/config/__init__.py
View
6 pyramid/config/__init__.py
@@ -704,7 +704,11 @@ def main(global_config, **settings):
c = self.maybe_dotted(callable)
module = inspect.getmodule(c)
if module is c:
- c = getattr(module, 'includeme')
+ try:
+ c = getattr(module, 'includeme')
+ except AttributeError:
+ raise ConfigurationError('module %s has no attribute %s' % (module.__name__, 'includeme'))
+
spec = module.__name__ + ':' + c.__name__
sourcefile = inspect.getsourcefile(c)
Please sign in to comment.
Something went wrong with that request. Please try again.