Skip to content

do not force gevent monkey patching#2

Open
gwik wants to merge 2 commits intomartinkou:masterfrom
gwik:master
Open

do not force gevent monkey patching#2
gwik wants to merge 2 commits intomartinkou:masterfrom
gwik:master

Conversation

@gwik
Copy link

@gwik gwik commented Nov 22, 2011

Hi Martin,

I changed the way import gevent to avoid monkey patching.

Although tests pass I have an exception running them in the error greenlet :
Traceback (most recent call last):
File "/Users/gwik/Development/gauss/people_service/lib/python2.7/site-packages/gevent-1.0a3-py2.7-macosx-10.7-x86_64.egg/gevent/greenlet.py", line 402, in run
result = self._run(_self.args, *_self.kwargs)
File "/Users/gwik/Development/gauss/people_service/src/applepushnotification/applepushnotification/service.py", line 139, in _error_loop
self._push_connection.close()
AttributeError: 'NoneType' object has no attribute 'close'
<Greenlet at 0x101483958: <bound method NotificationService._error_loop of <applepushnotification.service.NotificationService object at 0x101486050>>> failed with AttributeError

Is it a known side effect ?

Thank you for this lib.

Antonin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants