Commit 110d5386 authored by Mustafa Gezen's avatar Mustafa Gezen 🏗
Browse files

Move sigul debug to when the exception is actually raised

parent 8229ccaf
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment