mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fix for rich.console sometimes not being available, refs #1416
This commit is contained in:
parent
66e143c76e
commit
a21853c9da
1 changed files with 1 additions and 1 deletions
|
|
@ -1276,7 +1276,7 @@ class DatasetteRouter:
|
|||
pdb.post_mortem(exception.__traceback__)
|
||||
|
||||
if rich is not None:
|
||||
rich.console.Console().print_exception(show_locals=True)
|
||||
rich.get_console().print_exception(show_locals=True)
|
||||
|
||||
title = None
|
||||
if isinstance(exception, Forbidden):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue