show a messagebox on bcall errors instead of console print

This commit is contained in:
Romain Bignon 2010-09-30 20:11:48 +02:00
commit 41827c4160
2 changed files with 24 additions and 3 deletions

View file

@ -99,6 +99,7 @@ class BackendsCall(object):
else:
result = getattr(backend, function)(*args, **kwargs)
except Exception, error:
debug('%s: Called function %s raised an error: %r' % (backend, function, error))
self._store_error(backend, error)
else:
debug('%s: Called function %s returned: %r' % (backend, function, result))