Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Release Engineering
Public
distrobuild
Commits
110d5386
Commit
110d5386
authored
Apr 12, 2021
by
Mustafa Gezen
🏗
Browse files
Move sigul debug to when the exception is actually raised
parent
8229ccaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
distrobuild_scheduler/sigul.py
View file @
110d5386
...
...
@@ -43,12 +43,12 @@ async def run_sigul(args: List[str]):
proc
.
stdin
.
write
(
f
"
{
settings
.
sigul_passphrase
}
\0
"
.
encode
())
await
proc
.
wait
()
logger
.
debug
(
'sigul returned with code: %s'
,
proc
.
returncode
)
if
proc
.
returncode
!=
0
:
err
=
(
await
proc
.
stderr
.
read
()).
decode
()
# means that the package is already signed.
# stupid error
if
"ERROR: I/O error: EOFError()"
not
in
err
:
logger
.
debug
(
'sigul returned with code: %s'
,
proc
.
returncode
)
raise
SigulException
(
err
)
return
await
proc
.
communicate
()
...
...
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