Skip to content

Commit

Permalink
fix(editt): Added ´Item does not exist´ message #8
Browse files Browse the repository at this point in the history
  • Loading branch information
mrporsev committed Mar 6, 2023
1 parent 2e82883 commit 40d1fb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion httpie/cli/argtemplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ def edit_json_template(args):
stored_templates[template_name]['data'][template_item] = template_value
# Add a new key-value pair to the data dictionary
else:
stored_templates[template_name]['data'][template_item] = template_value
print(f"Item '{template_item}' does not exist.")
return

# Save the updated template to file
f.seek(0)
Expand Down

0 comments on commit 40d1fb1

Please sign in to comment.