Mercurial > libervia-backend
changeset 3063:84bb63e1e4c4
bridge (pb): added missing _generic_errback
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 21 Oct 2019 23:06:30 +0200 |
parents | 93e8793a735a |
children | d62fceccff22 |
files | sat/bridge/bridge_constructor/constructors/pb/pb_frontend_template.py sat_frontends/bridge/pb.py |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/sat/bridge/bridge_constructor/constructors/pb/pb_frontend_template.py Sun Oct 20 19:34:26 2019 +0200 +++ b/sat/bridge/bridge_constructor/constructors/pb/pb_frontend_template.py Mon Oct 21 23:06:30 2019 +0200 @@ -62,6 +62,9 @@ def __getattr__(self, name): return partial(self.call, name) + def _generic_errback(self, err): + log.error(f"bridge error: {err}") + def remoteCallback(self, result, callback): """call callback with argument or None
--- a/sat_frontends/bridge/pb.py Sun Oct 20 19:34:26 2019 +0200 +++ b/sat_frontends/bridge/pb.py Mon Oct 21 23:06:30 2019 +0200 @@ -62,6 +62,9 @@ def __getattr__(self, name): return partial(self.call, name) + def _generic_errback(self, err): + log.error(f"bridge error: {err}") + def remoteCallback(self, result, callback): """call callback with argument or None