Commits

Marcus von Appen  committed e68f5ca

- fixed issue #44: use a slightly less confusing value error, if the renderer argument is not provided

  • Participants
  • Parent commits 3beff16

Comments (0)

Files changed (1)

File sdl2/ext/sprite.py

         """
         if sprite_type == TEXTURE:
             if "renderer" not in kwargs:
-                raise ValueError("you have to provide a renderer= argument")
+                raise ValueError("you have to provide a renderer=<arg> argument")
         elif sprite_type != SOFTWARE:
             raise ValueError("stype must be TEXTURE or SOFTWARE")
         self._spritetype = sprite_type