diff options
author | Regis Merlino <regis.merlino@intel.com> | 2013-10-07 16:54:18 +0200 |
---|---|---|
committer | rmerlino <regis.merlino@intel.com> | 2013-12-12 11:43:00 +0100 |
commit | 04e3e17d954d4b1740b3adac51f4281805ed1790 (patch) | |
tree | 35b57447f268b1df3d7cdf637e4675065ecc90a3 | |
parent | d050fd88fb9211b5630c4d9ddf66b9ef67454783 (diff) | |
download | dleyna-server-04e3e17d954d4b1740b3adac51f4281805ed1790.tar.gz |
[Tests] Fix a typo in the Upload Sync Controller's error management
Signed-off-by: Regis Merlino <regis.merlino@intel.com>
-rw-r--r-- | test/dbus/upload_sync_controller.py | 10 |
1 files 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 |