-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix webclient figure scripts dialog #73
Conversation
This script is not supported in the views.py code and simply returns an error
Split figure works on merge-ci. 👍 |
omeroweb/webclient/views.py
Outdated
@@ -4396,7 +4396,8 @@ def run_script(request, conn, sId, inputMap, scriptName='Script'): | |||
request.session.modified = True | |||
except Exception as x: | |||
jobId = str(time()) # E.g. 1312803670.6076391 | |||
if x.message and x.message.startswith("No processor available"): | |||
if hasattr(x, 'message') and x.message and \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the lack of message
due to the change from Py2→Py3 Exceptions (might need something like x.args[0]
instead of x.message
?)
Functionally this works on py3-ci, but check the exception handling |
Ah, good point - will check exception handling... |
Merging based on #71 (comment) |
Fixes #71
Fixes dialogs for Thumbnail Figure and Split-View Figure.