Skip to content

Commit

Permalink
Error treatment at dispatcher.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielBCN committed May 29, 2017
1 parent 9a5370a commit 49d3ffc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
# The short X.Y version.
version = u'1.3'
# The full version, including alpha/beta/rc tags.
release = u'1.3.0'
release = u'1.3.1'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
4 changes: 3 additions & 1 deletion pyactor/green_thread/rpcactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,7 @@ def on_message(self, msg):
if msg[RPC_ID] in self.pending.keys():
self.pending[msg[RPC_ID]].send(msg)
del self.pending[msg[RPC_ID]]
except KeyError, ke:
print "ERROR: The actor", ke, "is offline."
except Exception, e:
print 'TCP ERROR:', e
print 'Connection ERROR:', e
4 changes: 3 additions & 1 deletion pyactor/thread/rpcactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,7 @@ def on_message(self, msg):
if msg[RPC_ID] in self.pending.keys():
self.pending[msg[RPC_ID]].send(msg)
del self.pending[msg[RPC_ID]]
except KeyError, ke:
print "ERROR: The actor", ke, "is offline."
except Exception, e:
print 'TCP ERROR:', e
print 'Connection ERROR:', e
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='pyactor',
version='1.3.0',
version='1.3.1',
author='Pedro Garcia Lopez & Daniel Barcelona Pons',
author_email='pedro.garcia@urv.cat, daniel.barcelona@urv.cat',
packages=find_packages(),
Expand Down

0 comments on commit 49d3ffc

Please sign in to comment.