diff options
author | biao716.wang <biao716.wang@samsung.com> | 2023-07-03 18:18:48 +0900 |
---|---|---|
committer | biao716.wang <biao716.wang@samsung.com> | 2023-07-03 18:18:48 +0900 |
commit | 3bf8cd59ba366224277fdfa6f8cff526963ff0f7 (patch) | |
tree | 187874d06b997215dde0c715f62288b73f0062af | |
parent | e1c33aa026e881af40d252306ff1c2134b55e76c (diff) | |
download | osc-3bf8cd59ba366224277fdfa6f8cff526963ff0f7.tar.gz osc-3bf8cd59ba366224277fdfa6f8cff526963ff0f7.tar.bz2 osc-3bf8cd59ba366224277fdfa6f8cff526963ff0f7.zip |
fix run error with osc cat command
Change-Id: Ia3e56e124a9bab3d53a2bfbe00d6dda151ccb3c3
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
-rw-r--r-- | osc/commandline.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/osc/commandline.py b/osc/commandline.py index d7710b2..ae82ee1 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -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, |