Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpcdf
obs
osc-plugins
Commits
d83d34ae
Commit
d83d34ae
authored
Jul 10, 2019
by
Lorenz Huedepohl
Browse files
Py3: Fix handling of empty requests
parent
6ec19bf3
Changes
1
Hide whitespace changes
Inline
Side-by-side
mpcdf_push.py
View file @
d83d34ae
...
...
@@ -92,7 +92,7 @@ def do_mpcdf_push(self, subcmd, opts, *args):
message
=
"Update {0} from {1}"
.
format
(
package
,
from_project
)
if
not
opts
.
message
else
opts
.
message
)
except
osc
.
core
.
HTTPError
as
e
:
if
e
.
code
==
400
:
if
"The request contains no actions"
in
e
.
read
():
if
"The request contains no actions"
in
mpcdf_common
.
decode_it
(
e
.
read
()
)
:
print
(
"No source changes found, submit request not necessary"
)
else
:
raise
e
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment