Crash of texts session with %find with incorrect query
With this incorrect (because the query must be ((meta: ((state: 'FIZZLED'))))
) input:
Input > %find ((meta: (state: 'FIZZLED')))
the texts session
crashes with this error:
Traceback (most recent call last):
File "vre-language/src/virtmat/language/utilities/errors.py", line 302, in wrapper
return func(*args, **kwargs)
File "vre-language/src/virtmat/language/interpreter/session_manager.py", line 194, in process_magic
q_dict = expand_query_prefix(tag_serialize(model.arg.value))
File "vre-language/src/virtmat/language/utilities/serializable.py", line 496, in tag_serialize
return _recursive_serialize(tagtab)
File "vre-language/src/virtmat/language/utilities/serializable.py", line 487, in _recursive_serialize
out[key] = _recursive_serialize(val[0])
File "vre-language/src/virtmat/language/utilities/serializable.py", line 495, in _recursive_serialize
raise TypeError(f'unsupported type for query/tag: {type(obj)}')
TypeError: unsupported type for query/tag: <class 'pandas.core.series.Series'>
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "vre-language/src/virtmat/language/utilities/errors.py", line 302, in wrapper
return func(*args, **kwargs)
File "vre-language/src/virtmat/language/interpreter/session_manager.py", line 145, in process_input
self.process_magic(model)
File "vre-language/src/virtmat/language/utilities/errors.py", line 337, in wrapper
raise RuntimeError('non-handled exception') from err
RuntimeError: non-handled exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "vre-language/src/virtmat/language/utilities/errors.py", line 302, in wrapper
return func(*args, **kwargs)
File "vre-language/src/virtmat/language/cli/run_session.py", line 93, in main
mgr.main_loop()
File "vre-language/src/virtmat/language/interpreter/session_manager.py", line 132, in main_loop
if self.process_input(input_str):
File "vre-language/src/virtmat/language/utilities/errors.py", line 337, in wrapper
raise RuntimeError('non-handled exception') from err
RuntimeError: non-handled exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "jupyter-tensorflow-2023-10-10/bin/texts", line 8, in <module>
sys.exit(texts())
File "vre-language/src/virtmat/language/cli/__init__.py", line 28, in texts
clargs.func(clargs)
File "vre-language/src/virtmat/language/utilities/errors.py", line 337, in wrapper
raise RuntimeError('non-handled exception') from err
RuntimeError: non-handled exception