summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
authorSanto Cariotti <sancn@live.com>2017-07-20 14:14:39 +0200
committerSanto Cariotti <sancn@live.com>2017-07-20 14:14:39 +0200
commitfb3d4d39eded67b145aa17eac72ae85c9793bf67 (patch)
tree449b9728d37741aed6f3a7c3eecc66e9549d9f0d /app.py
parent016321e670ff6e41177df2ad02579a82b97d15ca (diff)
used 🍺 icon
Diffstat (limited to 'app.py')
-rw-r--r--app.py8
1 files 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()