Commit 0decd359 by Alan Boudreault

fix for int(None) in __nonzero__

parent 3f1fae5f
...@@ -260,7 +260,7 @@ class Integer(LightChildField): ...@@ -260,7 +260,7 @@ class Integer(LightChildField):
def __nonzero__(self): def __nonzero__(self):
try: try:
int(self.value) int(self.value)
except ValueError: # not an integer except TypeError, ValueError: # not an integer
return False return False
return self.value is not None return self.value is not None
......
...@@ -82,7 +82,6 @@ ...@@ -82,7 +82,6 @@
.mentoring .mrq-attempts { .mentoring .mrq-attempts {
display: inline-block; display: inline-block;
vertical-align: baseline; vertical-align: baseline;
margin: 8px 0 0 10px;
color: #777; color: #777;
font-style: italic; font-style: italic;
webkit-font-smoothing: antialiased; 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