# HG changeset patch # User Goffi # Date 1447625501 -3600 # Node ID 2b82d846848e79cc53d36ee8cd79e527bcdd8675 # Parent 33728a2f17bf5b0de6f3a217d3061298972a660f core: added callback_id in DataError message of launchCallback diff -r 33728a2f17bf -r 2b82d846848e src/core/sat_main.py --- a/src/core/sat_main.py Sun Nov 15 23:11:38 2015 +0100 +++ b/src/core/sat_main.py Sun Nov 15 23:11:41 2015 +0100 @@ -861,7 +861,8 @@ return progress_all def registerCallback(self, callback, *args, **kwargs): - """ Register a callback. + """Register a callback. + Use with_data=True in kwargs if the callback use the optional data dict use force_id=id to avoid generated id. Can lead to name conflict, avoid if possible use one_shot=True to delete callback once it have been called @@ -910,7 +911,7 @@ try: callback, args, kwargs = self._cb_map[callback_id] except KeyError: - raise exceptions.DataError("Unknown callback id") + raise exceptions.DataError(u"Unknown callback id {}".format(callback_id)) if kwargs.get("with_data", False): if data is None: