Skip to content

Commit 0c20be9

Browse files
committed
🐛 fix ALCONNA_ARG_KEY.format
resolve #97
1 parent 0fdd078 commit 0c20be9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nonebot_plugin_alconna/matcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def get_path_arg(cls_or_self, path: str, default: Any) -> Any:
229229
else:
230230
state = current_matcher.get().state
231231
key = merge_path(path, cls_or_self.basepath)
232-
return state.get(ALCONNA_ARG_KEY.format(key), default)
232+
return state.get(ALCONNA_ARG_KEY.format(key=key), default)
233233

234234
@classmethod
235235
def assign(

0 commit comments

Comments
 (0)