[pyclutter/wip/introspection] Fix exception messages
- From: Bastian Winkler <bwinkler src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pyclutter/wip/introspection] Fix exception messages
- Date: Wed, 18 Apr 2012 13:48:17 +0000 (UTC)
commit f29e04118cc847f296a10751a906c162a91c3e71
Author: Bastian Winkler <buz netbuz org>
Date: Tue Apr 17 13:05:35 2012 +0200
Fix exception messages
introspection/Clutter.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/introspection/Clutter.py b/introspection/Clutter.py
index dd627eb..e126089 100644
--- a/introspection/Clutter.py
+++ b/introspection/Clutter.py
@@ -73,11 +73,11 @@ def _gvalue_from_python(value_type, v):
if isinstance(v, unicode):
v = v.encode('UTF-8')
else:
- raise ValueError("Expected string or unicode for property " + \
- "%s but got %s%s" % (prop_name, v, type(v)))
+ raise ValueError("Expected string or unicode " \
+ "but got %s%s" % (v, type(v)))
else:
- raise ValueError("Expected string or unicode for property " + \
- "%s but got %s%s" % (prop_name, v, type(v)))
+ raise ValueError("Expected string or unicode " \
+ "but got %s%s" % (v, type(v)))
value.set_string(str(v))
else:
return v
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]