fix message on OutOfRangeError

This commit is contained in:
Mark Pilgrim
2009-09-25 23:57:05 -04:00
parent 8b7a71d889
commit 6ce0f82422
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -241,7 +241,7 @@ FAILED (errors=3)</samp></pre>
def to_roman(n):
'''convert integer to Roman numeral'''
<a> if not (0 &lt; n &lt; 5000): <span class=u>&#x2461;</span></a>
raise OutOfRangeError('number out of range (must be 0..4999)')
raise OutOfRangeError('number out of range (must be 1..4999)')
if not isinstance(n, int):
raise NotIntegerError('non-integers can not be converted')