From 189af78fd5966a17b5ed22a5f4d6af78f781b3e6 Mon Sep 17 00:00:00 2001 From: oysteini Date: Tue, 11 May 2010 16:45:32 +0000 Subject: [PATCH] =?UTF-8?q?Mulighet=20for=20=C3=A5=20avbryte=20produktredi?= =?UTF-8?q?gering.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- text_based.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/text_based.py b/text_based.py index f68e6ba..ca6462b 100644 --- a/text_based.py +++ b/text_based.py @@ -404,6 +404,11 @@ class EditProductMenu(Menu): self.session.close() self.pause() return + elif what == None: + print 'Edit aborted' + return + else: + print 'What what?' class ShowUserMenu(Menu):