From d75d98da50dadb5efe9510f798b6d7a4cb10babd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20H=C3=BCwe?= Date: Wed, 8 Aug 2007 19:48:38 +0000 Subject: [PATCH] fixed possible "UnboundLocalError". Thanks to judas_iscariote for spotting this issue! --- osc/commandline.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/osc/commandline.py b/osc/commandline.py index 02df2cce..a90ea769 100755 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -868,6 +868,7 @@ class Osc(cmdln.Cmdln): conf.config['do_commits'] = True for p in pacs: + msg = '' if conf.config['do_commits']: if opts.message: msg = opts.message @@ -876,8 +877,6 @@ class Osc(cmdln.Cmdln): msg = open(opts.file).read() except: sys.exit('could not open file \'%s\'.' % opts.file) - else: - msg = '' p.commit(msg)