diff --git a/refactoring.html b/refactoring.html index e0fb975..06c87cc 100755 --- a/refactoring.html +++ b/refactoring.html @@ -73,9 +73,9 @@ FAILED (failures=1)
def from_roman(s):
'''convert Roman numeral to integer'''
if not s: ①
- raise InvalidRomanNumeralError, 'Input can not be blank'
+ raise InvalidRomanNumeralError('Input can not be blank')
if not re.search(romanNumeralPattern, s):
- raise InvalidRomanNumeralError, 'Invalid Roman numeral: {}'.format(s) ②
+ raise InvalidRomanNumeralError('Invalid Roman numeral: {}'.format(s)) ②
result = 0
index = 0