+ MOre comprehensive logs from subprocess in create_admin

This commit is contained in:
shockrah 2021-05-10 13:59:10 -07:00
parent a448273bf2
commit 96bdd70cd5

View File

@ -31,12 +31,17 @@ def create_admin() -> Admin :
)
try:
raw = json.loads(proc.stdout)
e = proc.stderr
user = raw.get('user')
server = raw.get('server')
if user is None or server is None:
print('stderr ', e)
print('stdout ', proc.stdout)
return None
else:
return Admin(user, server)
except:
print('stderr ', proc.stderr)
print('stdout ', proc.stdout)
return None