project8 / dripline

Slow controls for medium scale physics experiments based on AMQP centralized messaging
http://www.project8.org/dripline
1 stars 0 forks source link

Hotfix/wp1.4.0 python3.1.4 #147

Closed nsoblath closed 8 years ago

nsoblath commented 8 years ago

Extended the try block in handle_request to cover most of that function.

The case that failed before now successfully handles the exception and sends an error reply:

2015-12-09T17:38:02[INFO    ] dripline.core.endpoint(155) -> got a 0 request: e30=
2015-12-09T17:38:02[ERROR   ] dripline.core.endpoint(188) -> got an error: 'unicode' object has no attribute 'items'
2015-12-09T17:38:02[ERROR   ] dripline.core.endpoint(189) -> traceback follows:
Traceback (most recent call last):
  File "/Users/nsoblath/My_Documents/Project_8/DataAnalysis/dripline/python/dripline/core/endpoint.py", line 162, in handle_request
    these_kwargs = {k:v for k,v in msg.payload.items() if k!='values'}
AttributeError: 'unicode' object has no attribute 'items'

2015-12-09T17:38:02[INFO    ] dripline.core.service(529) -> sending a reply
2015-12-09T17:38:02[INFO    ] dripline.core.spimescape(65) -> request processing complete
{}
laroque commented 8 years ago

Merged and hotfix branch removed.