Permalink
Browse files

Fix strftime usage on None

Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
  • Loading branch information...
1 parent 7570d8a commit e143c381813b6089baa8db185bf8abe125afa8f5 @stefanha stefanha committed Aug 7, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/controller.py
View
@@ -90,7 +90,9 @@ def answer_letter(t,c):
progresses = []
for team in hunt.teams:
scores.append(team.score())
- if team.remaining():
+ if not hunt.started:
+ progresses.append('')
+ elif team.remaining():
progresses.append('%d left' % team.remaining())
else:
progresses.append(team.finish_time.strftime('%H:%M'))

0 comments on commit e143c38

Please sign in to comment.