Skip to content

Commit

Permalink
travis fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
antsmc2 committed Nov 20, 2017
1 parent 2f7fabc commit 0f8e491
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions survey/models/interviews.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,14 +621,11 @@ class MultiChoiceAnswer(Answer):

@classmethod
def create(cls, interview, question, answer):
try:
if unicode(answer).isdigit():
answer = int(answer)
answer = question.options.get(order=answer)
else:
answer = question.options.get(text__iexact=answer)
except BaseException, ex:
raise ex
if unicode(answer).isdigit():
answer = int(answer)
answer = question.options.get(order=answer)
else:
answer = question.options.get(text__iexact=answer)
return super(
MultiChoiceAnswer,
cls).create(
Expand Down

0 comments on commit 0f8e491

Please sign in to comment.