예제 #1
0
 def error_handler_wrapper(exception):
     exception = parse_dbus_error(exception)
     if not callable(error_handler):
         raise exception
     error_handler(exception)
예제 #2
0
파일: Adapter.py 프로젝트: Pjotr123/blueman
 def error_handler_wrapper(exception):
     exception = errors.parse_dbus_error(exception)
     if not callable(error_handler):
         raise exception
     error_handler(exception)
예제 #3
0
 def warp(*args, **kwargs):
     try:
         return func(*args, **kwargs)
     except dbus.DBusException, exception:
         raise errors.parse_dbus_error(exception)
예제 #4
0
파일: utils.py 프로젝트: Pjotr123/blueman
 def warp(*args, **kwargs):
     try:
         return func(*args, **kwargs)
     except dbus.DBusException, exception:
         raise errors.parse_dbus_error(exception)