Skip to content

Commit 2d8e31f

Browse files
Split ValueError on two lines (against Black formatting guidelines)
1 parent 0b22a3c commit 2d8e31f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python-mappings/pizza_menu.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ def __init__(self, menu: dict):
1414

1515
def _raise_duplicate_key_error(self, key):
1616
raise ValueError(
17-
f"'{key}' is an invalid name. All pizzas must have unique first letters"
17+
f"'{key}' is invalid."
18+
" All pizzas must have unique first letters"
1819
)
1920

2021
def __getitem__(self, key):

0 commit comments

Comments
 (0)