File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,8 @@ lint.extend-ignore = [
162162 " PLR2004" , # Magic value used in comparison
163163 " SIM115" , # Use context handler for opening files
164164 " SLF001" , # Private member accessed
165- " DOC201" , # 'Returns:' section in docstring is missing
165+ " DOC201" , # 'Returns' section in docstring is missing
166+ " DOC501" , # `Error` section in docstring is missing
166167]
167168lint.preview = true
168169
Original file line number Diff line number Diff line change @@ -69,10 +69,11 @@ def router(
6969
7070 if match :
7171 if not location or not location .path :
72- raise RuntimeError (
72+ msg = (
7373 "ReactPy-Router was unable to determine the current URL location.\n "
7474 "Are you sure you are running this within the a ConnectionContext?"
7575 )
76+ raise RuntimeError (msg )
7677
7778 def on_history_previous (event : dict [str , Any ]) -> None :
7879 """Callback function used within the JavaScript `History` component that signifies
You can’t perform that action at this time.
0 commit comments