Created
September 8, 2017 09:02
-
-
Save Cykooz/72ffb05e65112c06ea9b7e718d0d387f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cykooz@cykooz-nb:~/Work/backend$ ./bin/python | |
Python 3.6.2 (default, Jul 20 2017, 08:43:29) | |
[GCC 5.4.1 20170519] on linux | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> | |
>>> from raven.base import DummyClient | |
>>> import psutil | |
>>> | |
>>> psutil.Popen._Popen__subproc = None | |
>>> | |
>>> client = DummyClient() | |
>>> client.is_enabled = lambda: True | |
>>> | |
>>> try: | |
... proc = psutil.Popen('program_not_found') | |
... except Exception as e: | |
... client.captureException() | |
... | |
Popen instance has no attribute 'pid' | |
Traceback (most recent call last): | |
File "<console>", line 2, in <module> | |
File "/home/cykooz/buildout-eggs/psutil-5.2.2-py3.6-linux-x86_64.egg/psutil/__init__.py", line 1370, in __init__ | |
self.__subproc = subprocess.Popen(*args, **kwargs) | |
File "/usr/lib/python3.6/subprocess.py", line 707, in __init__ | |
restore_signals, start_new_session) | |
File "/usr/lib/python3.6/subprocess.py", line 1333, in _execute_child | |
raise child_exception_type(errno_num, err_msg) | |
FileNotFoundError: [Errno 2] No such file or directory: 'program_not_found' | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/home/cykooz/buildout-eggs/psutil-5.2.2-py3.6-linux-x86_64.egg/psutil/__init__.py", line 1399, in __getattribute__ | |
return object.__getattribute__(self, name) | |
AttributeError: 'Popen' object has no attribute '_pid' | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/home/cykooz/buildout-eggs/psutil-5.2.2-py3.6-linux-x86_64.egg/psutil/__init__.py", line 1402, in __getattribute__ | |
return object.__getattribute__(self.__subproc, name) | |
AttributeError: 'NoneType' object has no attribute '_pid' | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/home/cykooz/buildout-eggs/psutil-5.2.2-py3.6-linux-x86_64.egg/psutil/__init__.py", line 1399, in __getattribute__ | |
return object.__getattribute__(self, name) | |
File "/home/cykooz/buildout-eggs/psutil-5.2.2-py3.6-linux-x86_64.egg/psutil/__init__.py", line 466, in pid | |
return self._pid | |
File "/home/cykooz/buildout-eggs/psutil-5.2.2-py3.6-linux-x86_64.egg/psutil/__init__.py", line 1405, in __getattribute__ | |
% (self.__class__.__name__, name)) | |
AttributeError: Popen instance has no attribute '_pid' | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/home/cykooz/buildout-eggs/psutil-5.2.2-py3.6-linux-x86_64.egg/psutil/__init__.py", line 1402, in __getattribute__ | |
return object.__getattribute__(self.__subproc, name) | |
AttributeError: 'NoneType' object has no attribute 'pid' | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/home/cykooz/buildout-eggs/raven-6.1.0-py2.py3-none-any.ovo/raven/utils/serializer/manager.py", line 76, in transform | |
return repr(value) | |
File "/home/cykooz/buildout-eggs/psutil-5.2.2-py3.6-linux-x86_64.egg/psutil/__init__.py", line 446, in __repr__ | |
return "<%s at %s>" % (self.__str__(), id(self)) | |
File "/home/cykooz/buildout-eggs/psutil-5.2.2-py3.6-linux-x86_64.egg/psutil/__init__.py", line 432, in __str__ | |
pid = self.pid | |
File "/home/cykooz/buildout-eggs/psutil-5.2.2-py3.6-linux-x86_64.egg/psutil/__init__.py", line 1405, in __getattribute__ | |
% (self.__class__.__name__, name)) | |
AttributeError: Popen instance has no attribute 'pid' | |
'83a1e04e00654a99800c2e9b25f0eccc' | |
>>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment