Skip to content
Snippets Groups Projects
Commit 12c8e246 authored by trash-guy's avatar trash-guy
Browse files

Error wrapping

parent 12af7bca
No related branches found
No related tags found
No related merge requests found
...@@ -117,8 +117,8 @@ class TrashGuy: ...@@ -117,8 +117,8 @@ class TrashGuy:
raise IndexError("trashguy index out of range") raise IndexError("trashguy index out of range")
return FrameEngine.get_frame(self.slices, self.sprites, i) return FrameEngine.get_frame(self.slices, self.sprites, i)
else: else:
raise TypeError(f"trashguy indices must be integers or slices, \ raise TypeError("trashguy indices must be integers or slices, "
not {type(i)}") f"not {type(i)}")
def __iter__(self): def __iter__(self):
return self return self
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment