diff options
author | Santo Cariotti <sancn@live.com> | 2017-07-20 14:14:39 +0200 |
---|---|---|
committer | Santo Cariotti <sancn@live.com> | 2017-07-20 14:14:39 +0200 |
commit | fb3d4d39eded67b145aa17eac72ae85c9793bf67 (patch) | |
tree | 449b9728d37741aed6f3a7c3eecc66e9549d9f0d /app.py | |
parent | 016321e670ff6e41177df2ad02579a82b97d15ca (diff) |
used 🍺 icon
Diffstat (limited to 'app.py')
-rw-r--r-- | app.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -5,7 +5,7 @@ from listcommands import ListCommands class Stout(Commands): def __init__(self): - self.name = 'stout' + self.name = u'\U0001F37A' self.user = Stout.username() def getName(self): @@ -52,7 +52,11 @@ if __name__ == '__main__': app = Stout() cmd = '' while cmd != 'quit': - cmd = input('>' + Colors.yellow + app.getName() + Colors.black) + try: + cmd = input('>' + Colors.yellow + app.getName() + Colors.black) + except EOFError: + break + app.action(cmd) r.save() |