Update 5-function-returning-tips.md

This commit is contained in:
piglei 2022-03-17 17:56:55 +08:00 committed by GitHub
parent 05b583c040
commit c2c747d93f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ def create_for_input():
try:
item = create_item(name)
except CreateItemError as e:
print(f'create item failed: {err_msg}')
print(f'create item failed: {e}')
else:
print(f'item<{name}> created')