Skip to content

Commit e4fb60e

Browse files
committed
add ValueError to the list of accepable intercepted exceptions for placeholder testing #141
1 parent cca7b71 commit e4fb60e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

render_static/transpilers/urls_to_js.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ def get_params(pattern: Union[RoutePattern, RegexPattern]) -> Dict[str, Any]:
490490
placeholder_url = reverse(
491491
qname, kwargs={**kwargs, **(endpoint.default_args or {})}
492492
)
493-
except (NoReverseMatch, TypeError, AttributeError):
493+
except (NoReverseMatch, TypeError, AttributeError, ValueError):
494494
continue
495495

496496
replacements = []

0 commit comments

Comments
 (0)