Skip to content

Commit

Permalink
fix import issue on webapp
Browse files Browse the repository at this point in the history
  • Loading branch information
nickp60 committed Apr 20, 2018
1 parent 65c70f2 commit 2d041b8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions webapp/clermontwebapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,12 @@ def runcler(contigsfile, ignore_control=False, partial=False):
try:
results, profile = clermontpcr.main(args)
except Exception as e:
print(e)
results = str("Control fail! Are you sure this is E. coli? " +
"Please contact the support team")
if e is AttributeError:
results = "Deploy error!"
else:
print(e)
results = str("Control fail! Are you sure this is E. coli? " +
"Please contact the support team")
profile = ""
return (results, profile)

Expand Down

0 comments on commit 2d041b8

Please sign in to comment.