Commit 0decd359 by Alan Boudreault

fix for int(None) in __nonzero__

parent 3f1fae5f
......@@ -260,7 +260,7 @@ class Integer(LightChildField):
def __nonzero__(self):
try:
int(self.value)
except ValueError: # not an integer
except TypeError, ValueError: # not an integer
return False
return self.value is not None
......
......@@ -82,7 +82,6 @@
.mentoring .mrq-attempts {
display: inline-block;
vertical-align: baseline;
margin: 8px 0 0 10px;
color: #777;
font-style: italic;
webkit-font-smoothing: antialiased;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment