21 Oct
2004
21 Oct
'04
5:44 p.m.
Sean Hastings wrote at 2004-10-21 11:18 -0400:
...
def fooEdit(self,REQUEST): "foo is a string - foo2 is an int" self.foo = REQUEST.get('foo','') try: self.foo2 = int(REQUEST.get('foo2',0) except ValueError, e: self.foo2 = 0
Then could I say that this would be an example in which catching SOME exception CAN NOT result in inconsistent data?
You can :-) -- Dieter