Remove exeption on size of char

- This is done by the database
- The function is not only used to set value

bzr revid: ced-abbbfeca10549aec408c53123e2d172b0612aab5
This commit is contained in:
ced
2007-11-21 15:24:33 +00:00
parent e8ca9916e1
commit 5ad164063d
+1 -5
View File
@@ -147,11 +147,7 @@ class char(_column):
u_symb = symb
else:
u_symb = unicode(symb)
if len(u_symb) > self.size:
raise Exception, '%s size greater than %d' % (self.string, self.size)
else:
return u_symb.encode('utf8')
return u_symb.encode('utf8')
class text(_column):
_type = 'text'