Skip to content

Commit

Permalink
Release v0.1.1
Browse files Browse the repository at this point in the history
Fixes abnormal termination when the server is stopped while the child 
process is still running.
  • Loading branch information
P403n1x87 committed Oct 13, 2020
1 parent db25163 commit fc17c8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion austin_web/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

from aiohttp import web
from aiohttp.test_utils import unused_port
from austin import AustinError
from austin import AustinError, AustinTerminated
from austin.aio import AsyncAustin
from austin.cli import AustinArgumentParser, AustinCommandLineError
from austin_web.data import DataPool, WebFrame
Expand Down Expand Up @@ -237,6 +237,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 Austin") 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-web"
version = "0.1.0"
version = "0.1.1"
description = "Flame graph web application for Austin"
license = "GPL-3.0-or-later"
authors = ["Gabriele N. Tornetta <[email protected]>"]
Expand Down

0 comments on commit fc17c8e

Please sign in to comment.