Skip to content

Commit 8648008

Browse files
committed
fix stacklevel for warning
1 parent 7b722a7 commit 8648008

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shiny/bookmark/_bookmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ async def invoke_on_restored_callbacks():
436436
except Exception as e:
437437
warnings.warn(
438438
f"Error calling on_restored callback: {e}",
439-
stacklevel=2,
439+
stacklevel=1,
440440
)
441441
notification_show(
442442
f"Error calling on_restored callback: {e}",

0 commit comments

Comments
 (0)