Skip to content

Commit 5c4481a

Browse files
committed
fix - don't show locals when printing stacktrace
1 parent f840325 commit 5c4481a

File tree

4 files changed

+130
-125
lines changed

4 files changed

+130
-125
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*.egg-info
22
dist/
3+
__pycache__/

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "mp_reader"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
description = "Add your description here"
55
readme = "README.md"
66
requires-python = ">=3.13"

src/mp_reader/__main__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,18 @@
55
import typer
66
from .analyzer import stats, dump_events, type_stats
77

8+
89
def main():
9-
app = typer.Typer(help="Analyze memory profiler output")
10+
app = typer.Typer(
11+
help="Analyze memory profiler output", pretty_exceptions_show_locals=False
12+
)
1013

1114
app.command("stats")(stats)
1215
app.command("type_stats")(type_stats)
1316
app.command("dump_events")(dump_events)
1417

1518
app()
1619

20+
1721
if __name__ == "__main__":
1822
main()

0 commit comments

Comments
 (0)