1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-31 10:11:17 +00:00

daq server: report DAQError messages properly

This commit is contained in:
Sergei Trofimov 2015-07-09 11:00:46 +01:00
parent a72ae92ece
commit 687e1ba6b8
4 changed files with 3 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@ -14,4 +14,4 @@
#
__version__ = '1.0.3'
__version__ = '1.0.4'

View File

@ -235,7 +235,8 @@ class DaqControlProtocol(LineReceiver): # pylint: disable=W0223
else:
self.sendError('Received unknown command: {}'.format(request.command))
except Exception, e: # pylint: disable=W0703
self.sendError('{}: {}'.format(e.__class__.__name__, e.message))
message = getattr(e, 'mess', e.message)
self.sendError('{}: {}'.format(e.__class__.__name__, message))
def configure(self, request):
if 'config' in request.params: