use new style Exception raising without the 'comma' syntax

This commit is contained in:
Jurko Gospodnetić 2014-07-03 01:57:41 +02:00
parent 96bf1052a1
commit 2e7c8b8e47
1 changed files with 1 additions and 1 deletions

View File

@ -57,4 +57,4 @@ class Content(Object):
value = None
setattr(self, name, value)
return value
raise AttributeError, "Content has no attribute %s" % (name,)
raise AttributeError("Content has no attribute %s" % (name,))