Commits

Sebastian Wiesner committed edc5357

Improved error message

  • Participants
  • Parent commits 304b06d

Comments (0)

Files changed (1)

programoutput/sphinxcontrib/programoutput.py

 def _slice(value):
     parts = [int(v.strip()) for v in value.split(',')]
     if len(parts) > 2:
-        raise ValueError('Need excatly two arguments')
+        raise ValueError('too many slice parts')
     return (parts + [None]*2)[:2]