Mercurial > libervia-backend
comparison sat_frontends/bridge/pb.py @ 3063:84bb63e1e4c4
bridge (pb): added missing _generic_errback
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 21 Oct 2019 23:06:30 +0200 |
parents | a1bc34f90fa5 |
children | 2cc2f65379f7 |
comparison
equal
deleted
inserted
replaced
3062:93e8793a735a | 3063:84bb63e1e4c4 |
---|---|
59 def __init__(self): | 59 def __init__(self): |
60 self.signals_handler = SignalsHandler() | 60 self.signals_handler = SignalsHandler() |
61 | 61 |
62 def __getattr__(self, name): | 62 def __getattr__(self, name): |
63 return partial(self.call, name) | 63 return partial(self.call, name) |
64 | |
65 def _generic_errback(self, err): | |
66 log.error(f"bridge error: {err}") | |
64 | 67 |
65 def remoteCallback(self, result, callback): | 68 def remoteCallback(self, result, callback): |
66 """call callback with argument or None | 69 """call callback with argument or None |
67 | 70 |
68 if result is not None not argument is used, | 71 if result is not None not argument is used, |