'NoneType' object has no attribute '__module__'
See original GitHub issueWe are getting a Sentry issue reported by Sentry. The issue happens in Celery executed code.
MESSAGE
Signal handler <bound method SentryCeleryHandler.process_failure_signal of <raven.contrib.celery.SentryCeleryHandler object at 0x7f7ba702e450>> raised: AttributeError("'NoneType' object has no attribute '__module__'",)
Exception:
AttributeError 'NoneType' object has no attribute '__module__'
The offending code looks to be this:
def should_capture(self, exc_info): exc_type = exc_info[0] exc_name = '%s.%s' % (exc_type.__module__, exc_type.__name__) exclusions = self.ignore_exceptions
Python: 2.7.11 raven-python: 5.32.0 celery: 4.0.2
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:8
Top Results From Across the Web
Why do I get AttributeError: 'NoneType' object has no attribute ...
NoneType means that instead of an instance of whatever Class or Object you think you're working with, you've actually got None .
Read more >AttributeError: 'NoneType' object has no attribute ... - GitHub
In my case the problem was caused by adding a module directory to sys path and using import directory.module . Using import module...
Read more >[FIXED] AttributeError: 'NoneType' object has no attribute ...
The code encounters an attribute error because in the first iteration it cannot find a match, therefore x returns None. Hence, when we...
Read more >'NoneType' Object has no Attribute 'modules' Attri...
I am developing a script tool that will be part of a suite of tools in an ArcToolbox. This script tool is intended...
Read more >AttributeError: 'NoneType' object has no attribute 'ema_scope'
AttributeError : 'NoneType' object has no attribute 'ema_scope'. I have the Automatic1111 webui do a git pull everytime I run it. It ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I only got this problem when I tried to use client.captureException outside of a try/except block.
Sort of workaround for using
captureException
outside try/except block: