Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ def addAt(self, index, data):
"""
if index < 0:
raise Exception('index should not be negative. The value of index was: {}'.format(index))

if index > self.llSize:
raise Exception('index is out of bounds. The value of index was: {}'.format(index))

if index == 0:
self.addFirst(data)
Expand Down