From 06bf88552488ccc81e3f0813e3f8374e1fb9f966 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 8 Feb 2012 15:56:03 +0100 Subject: [PATCH] - do not crash when not creating incident request (#745842) --- osc/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/osc/core.py b/osc/core.py index fbe5679f..c07de01e 100644 --- a/osc/core.py +++ b/osc/core.py @@ -3479,6 +3479,7 @@ def create_submit_request(apiurl, # I guess, my original workaround was not that bad. u = makeurl(apiurl, ['request'], query='cmd=create') + r = None try: f = http_POST(u, data=xml) root = ET.parse(f).getroot()