From 04e3e17d954d4b1740b3adac51f4281805ed1790 Mon Sep 17 00:00:00 2001 From: Regis Merlino Date: Mon, 7 Oct 2013 16:54:18 +0200 Subject: [Tests] Fix a typo in the Upload Sync Controller's error management Signed-off-by: Regis Merlino --- test/dbus/upload_sync_controller.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/dbus/upload_sync_controller.py b/test/dbus/upload_sync_controller.py index 1db73ff..169e2ab 100644 --- a/test/dbus/upload_sync_controller.py +++ b/test/dbus/upload_sync_controller.py @@ -65,7 +65,7 @@ class UscError(Exception): self.message = message def __str__(self): - return 'DscError: ' + self.message + return 'UscError: ' + self.message class _UscStore(object): REMOTE_ID_OPTION = 'remote_id' @@ -258,14 +258,14 @@ class UscController(object): try: srt = server.get_prop('ServiceResetToken') except: - raise DscError("'ServiceResetToken' variable not supported") + raise UscError("'ServiceResetToken' variable not supported") try: dlna_caps = server.get_prop('DLNACaps') if not 'content-synchronization' in dlna_caps: raise except: - raise DscError("'content-synchronization' cap not supported") + raise UscError("'content-synchronization' cap not supported") try: search_caps = server.get_prop('SearchCaps') @@ -274,10 +274,10 @@ class UscController(object): if not [x for x in search_caps if 'ContainerUpdateID' in x]: raise except: - raise DscError("'objectUpdateID' search cap not supported") + raise UscError("'objectUpdateID' search cap not supported") return srt - except DscError as err: + except UscError as err: print err return None -- cgit v1.2.1