raven-python icon indicating copy to clipboard operation
raven-python copied to clipboard

Issues with namespace packages

Open dcramer opened this issue 11 years ago • 1 comments

Quoting a user here:

I have a Pyramid web app which is inside a namespace package. If I add this package to include_paths, I get the following error in case of an exception:

return get_versions(self.include_paths) 
File "/.../raven-4.0.4-py2.7.egg/raven/utils/__init__.py", line 99, in get_versions 
__import__(module_name) 
ValueError: Empty module name

If I leave include_paths empty no exception from that module is logged. Exceptions raised in other modules are send to Sentry, so it looks to me as namespace packages are ignored or cannot be handled.

dcramer avatar Feb 25 '14 19:02 dcramer

4 years later.. Setting empty include_paths seems to resolve this issue. It's not perfect and might bring some other noise, but atleast it does not hide exception stack.

AvnerCohen avatar Oct 22 '18 12:10 AvnerCohen