kopia lustrzana https://github.com/simonw/datasette
				
				
				
			Fix for rich.console sometimes not being available, refs #1416
							rodzic
							
								
									66e143c76e
								
							
						
					
					
						commit
						a21853c9da
					
				|  | @ -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): | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 Simon Willison
						Simon Willison