[telepathy-gabble/master] olpc/util.py: raise ValueError instead of PropertyTypeError which actually doesn't exist
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Tue Mar 31 06:36:36 PDT 2009
---
tests/twisted/olpc/util.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/twisted/olpc/util.py b/tests/twisted/olpc/util.py
index aab1486..1f536f3 100644
--- a/tests/twisted/olpc/util.py
+++ b/tests/twisted/olpc/util.py
@@ -26,10 +26,10 @@ def parse_properties(elems):
continue
if type not in valid_types:
- raise PropertyTypeError(type, elems.uri)
+ raise ValueError
if type == 'bool' and value not in ['1', '0', 'true', 'false']:
- raise PropertyTypeError(type, elems.uri)
+ raise ValueError
properties[name] = (type, value)
--
1.5.6.5
More information about the telepathy-commits
mailing list