Skip to content

Commit

Permalink
fix typo in delvar (UsergeTeam#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
Krishna-Singhal authored May 13, 2022
1 parent 73c12a0 commit 748e9cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userge/plugins/builtin/system/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ async def delvar_(message: Message) -> None:
var_name = message.input_str.strip()
var_data = system.get_env(var_name)

if var_data:
if not var_data:
await message.err(f"`var {var_name} not found!`")
return

Expand Down

0 comments on commit 748e9cb

Please sign in to comment.