Skip to content
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

Error in _demux function #77

Open
ajoscha opened this issue Aug 25, 2016 · 0 comments
Open

Error in _demux function #77

ajoscha opened this issue Aug 25, 2016 · 0 comments
Assignees
Labels

Comments

@ajoscha
Copy link
Collaborator

ajoscha commented Aug 25, 2016

In function _demux of papi/plugin/base_classes/base_plugin.py:

It can happen that self._dplugin_info is None and then self._dplugin_info.get_subscribtions() is failing and the belonging plugin will not work anymore. It is as well not possible to correctly close PaPI. First solution is

       if self._dplugin_info is None:
           print("bug subscription demux")
           return None
       else:

and then to check in the calling function (in my case the function _work_process of papi/plugin/base_classes/base_ownProcess.py)

       data = self._demux(opt.data_source_id, opt.block_name, opt.data)
       if data is None:
            pass
       else:

this will not be the final solution but was a workaround in my case.

Note: _demux is also called in papi/gui/gui_event_processing.py, bit it seems like safety checks are done to prevent an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants