mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Upgrade friendly-traceback and its dependencies
Summary: Upgrading the friendly-traceback package to include a fix that I specifically requested in https://github.com/friendly-traceback/friendly-traceback/issues/144 as a solution for the problem mentioned in https://grist.quip.com/HoSmAlvFax0j#MbTADAEcJb7 . Specifically, this shows a friendly explanation when using `len()` with a generator expression. Also upgraded the dependencies `executing` and `stack_data` (which are mine) while I'm at it, although I don't expect this to really change anything. Test Plan: Existing tests. There was one test failure because of a new explanation about generic `Exception`s which I've suppressed. Tested manually that the new explanation appears: {F64605} Reviewers: dsagal Reviewed By: dsagal Differential Revision: https://phab.getgrist.com/D3687
This commit is contained in:
@@ -24,6 +24,10 @@ def friendly_message(exc):
|
||||
# with a suggestion to report the case on GitHub.
|
||||
return ""
|
||||
|
||||
if "All built-in exceptions defined by Python are derived from `Exception`" in generic:
|
||||
# Unhelpful explanation for a generic `Exception`
|
||||
return ""
|
||||
|
||||
# Add a blank line between the standard message and the friendly message
|
||||
result = "\n\n" + generic
|
||||
|
||||
|
||||
Reference in New Issue
Block a user