From 09158d5d80ce24ceffc4e1fca98da656ab022528 Mon Sep 17 00:00:00 2001 From: Niklas Sombert Date: Wed, 13 Sep 2017 17:57:41 +0200 Subject: [PATCH] utils.show_edit: Accept empty email addresses. --- metecli/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/metecli/utils.py b/metecli/utils.py index f269ab1..dd7e156 100644 --- a/metecli/utils.py +++ b/metecli/utils.py @@ -123,6 +123,9 @@ def show_edit(dict, key, prompt, type): if "@" in given: new_value = given break + elif not given: # empty address + new_value = given + break else: print("This is not a valid email adress.") continue