From 0ff205615f98490cf56e483f6414a3302097aec0 Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Sat, 2 Feb 2019 00:28:56 +0100 Subject: [PATCH] This is not js is it? --- src/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cli.py b/src/cli.py index 204d679..802d465 100755 --- a/src/cli.py +++ b/src/cli.py @@ -15,9 +15,9 @@ def tweet(video): def prompt(name): manual_name = input("Insufficient name: '{}'\nInput name manually: ".format(name)) - if manual_name is 'q': - assert KeyboardInterrupt - if manual_name is 's': + if manual_name == 'q': + raise KeyboardInterrupt + if manual_name == 's': return None