Skip to content
Snippets Groups Projects
Commit 327f98d1 authored by Nicolas Dandrimont's avatar Nicolas Dandrimont
Browse files

Ignore stderr in db_testing.swh_db_version instead of printing it out

parent 22e77212
No related branches found
Tags v0.9.0
1 merge request!161Make swh db init and swh db-init behavior much closer to one another
......@@ -42,7 +42,11 @@ def swh_db_version(dbname_or_service):
try:
r = subprocess.run(
cmd, check=True, stdout=subprocess.PIPE, universal_newlines=True
cmd,
check=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
universal_newlines=True,
)
result = int(r.stdout.strip())
except Exception: # db not initialized
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment