Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix parameter display for tools with sections
Fixes: ``` Message Uncaught exception in exposed API method: Stack Trace(most recent call first) TypeError: Object of type method is not JSON serializable File "galaxy/util/json.py", line 74, in safe_dumps dumped = json.dumps(obj, allow_nan=False, **kwargs) File "__init__.py", line 234, in dumps return cls( File "json/encoder.py", line 199, in encode chunks = self.iterencode(o, _one_shot=True) File "json/encoder.py", line 257, in iterencode return _iterencode(o, 0) File "json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} ' TypeError: Object of type method is not JSON serializable File "galaxy/web/framework/decorators.py", line 341, in decorator rval = format_return_as_json(rval, jsonp_callback, pretty=trans.debug) File "galaxy/web/framework/decorators.py", line 378, in format_return_as_json json = safe_dumps(rval, **dumps_kwargs) File "galaxy/util/json.py", line 77, in safe_dumps dumped = json.dumps(obj, allow_nan=False, **kwargs) File "__init__.py", line 234, in dumps return cls( File "json/encoder.py", line 199, in encode chunks = self.iterencode(o, _one_shot=True) File "json/encoder.py", line 257, in iterencode return _iterencode(o, 0) File "json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} ' ``` from https://sentry.galaxyproject.org/share/issue/665556bc240f4a04978f7c81c2be629c/
- Loading branch information