OSDN Git Service

error proc
authoryamat0jp <yamat0jp@yahoo.co.jp>
Tue, 11 Sep 2018 21:35:53 +0000 (06:35 +0900)
committeryamat0jp <yamat0jp@yahoo.co.jp>
Tue, 11 Sep 2018 21:35:53 +0000 (06:35 +0900)
bot.py

diff --git a/bot.py b/bot.py
index e1a8d69..de4ae86 100644 (file)
--- a/bot.py
+++ b/bot.py
@@ -120,7 +120,7 @@ class DummyHandler(tornado.web.RequestHandler):
             if len(x) > 0 and x[0] == '@':
                 dic = {}
                 dic['name'] = x[1:]
-            elif 'name' in dic.keys():
+            elif not dic:
                 dic['no'] = x
                 item.append(dic)
         table = self.db[name]