fix run error with osc cat command 60/295160/1
authorbiao716.wang <biao716.wang@samsung.com>
Mon, 3 Jul 2023 09:18:48 +0000 (18:18 +0900)
committerbiao716.wang <biao716.wang@samsung.com>
Mon, 3 Jul 2023 09:18:48 +0000 (18:18 +0900)
Change-Id: Ia3e56e124a9bab3d53a2bfbe00d6dda151ccb3c3
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
osc/commandline.py

index d7710b2a2e322bc771fcf03b2913d7af7fb5ecd5..ae82ee18f39bb019cb2eb504e92c7d7bcaf6be16 100644 (file)
@@ -7177,8 +7177,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
                          file=opts.file,
                          headers=opts.headers)
         out = r.read()
-
-        if opts.edit:
+        if 'edit' in opts.__dict__ and opts.edit:
             text = edit_text(out)
             r = http_request("PUT",
                          url,