Merge pull request #4292 from ostcar/fix_projector_error_representation

Fix projector error message
This commit is contained in:
Emanuel Schütze 2019-02-10 11:40:40 +01:00 committed by GitHub
commit 3d2993e864
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ async def get_projector_data(
try: try:
data = projector_slide(all_data, element) data = projector_slide(all_data, element)
except ProjectorElementException as err: except ProjectorElementException as err:
data = {"error": err} data = {"error": str(err)}
projector_data[projector_id].append({"data": data, "element": element}) projector_data[projector_id].append({"data": data, "element": element})
return projector_data return projector_data