From a99b17df6783262618de864ff9016ef990ee6d43 Mon Sep 17 00:00:00 2001 From: Neil Greenwood Date: Tue, 1 Dec 2015 11:27:36 +0000 Subject: [PATCH] Initialise self.data when exception is thrown --- muttqt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/muttqt b/muttqt index 2a9b9cf..43e1ca8 100755 --- a/muttqt +++ b/muttqt @@ -80,7 +80,8 @@ class aliasData(dataSource): lines = f.readlines() f.close() except: - return [] + self.data = [] + return for line in lines: l = line.rstrip().split() if l != [] and l[0] == 'alias':