Skip to content

Commit 0736fd7

Browse files
miguelHxlhchavez
andauthored
Update Python/chapter02/2.4 - Partition/miguel_2.4_soln.py
Co-Authored-By: lhchavez <[email protected]>
1 parent 6bf1a42 commit 0736fd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/chapter02/2.4 - Partition/miguel_2.4_soln.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def pop_head(self) -> Optional[Node]:
9292

9393
def append(self, ll: object):
9494
if not isinstance(ll, LinkedList):
95-
return TypeError
95+
raise TypeError(...)
9696
self.tail.next = ll.head
9797

9898
def __repr__(self):

0 commit comments

Comments
 (0)