Skip to content

Commit b6f1619

Browse files
committed
do try..except on debug_log
1 parent 4b81ae2 commit b6f1619

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/warnet/bitcoin.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ def debug_log(tank: str):
5050
Fetch the Bitcoin Core debug log from <tank pod name>
5151
"""
5252
cmd = f"kubectl logs {tank}"
53-
print(run_command(cmd))
53+
try:
54+
print(run_command(cmd))
55+
except Exception as e:
56+
print(f"{e}")
5457

5558

5659
@bitcoin.command()

0 commit comments

Comments
 (0)