Skip to content

Commit

Permalink
Release v0.1.3
Browse files Browse the repository at this point in the history
Fixes abnormal shutdown when the TUI is closed while the child process 
is still running.
  • Loading branch information
P403n1x87 committed Oct 13, 2020
1 parent 6be97cf commit 9a1fbc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion austin_tui/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import sys
from typing import List, Optional

from austin import AustinError
from austin import AustinError, AustinTerminated
from austin.aio import AsyncAustin
from austin.cli import AustinArgumentParser, AustinCommandLineError
from austin_tui import catch
Expand Down Expand Up @@ -102,6 +102,8 @@ async def start(self, args: List[str]) -> None:
"""Start Austin and catch any exceptions."""
try:
await super().start(args)
except AustinTerminated:
pass
except AustinError as e:
raise KeyboardInterrupt("Failed to start") from e

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

[tool.poetry]
name = "austin-tui"
version = "0.1.2"
version = "0.1.3"
description = "The top-like text-based user interface for Austin"
license = "GPL-3.0-or-later"
authors = ["Gabriele N. Tornetta <[email protected]>"]
Expand Down

0 comments on commit 9a1fbc3

Please sign in to comment.