From fb3d4d39eded67b145aa17eac72ae85c9793bf67 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Thu, 20 Jul 2017 14:14:39 +0200 Subject: used 🍺 icon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 1d9b65b..ab2f90e 100644 --- a/app.py +++ b/app.py @@ -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() -- cgit v1.2.3-18-g5258