- bot.msg(user, "Report #%d: Q%d: %s" % (i, report[0], report[1]))
- question = state.db['questions'][int(report[0])]
- bot.msg(user, "- Question is: %s" % (question[0]))
- bot.msg(user, "- Answer is: %s" % (question[1]))
+ bot.msg(user, "Report #%d: LastQ=%r CurQ=%r: %s" % (i, report[0], report[1], report[2]))
+ try: lq = state.db['questions'][int(report[0])]
+ except Exception as e: lq = (None,None)
+ try: cq = state.db['questions'][int(report[1])]
+ except Exception as e: cq = (None, None)
+ bot.msg(user, "- Last: %s*%s" % (lq[0], lq[1]))
+ bot.msg(user, "- Curr: %s*%s" % (cq[0], cq[1]))