Ticket #11993: 11993.diff

File 11993.diff, 431 bytes (added by kklimonda, 5 years ago)

add ValueError to list of caught exceptions

  • django/template/defaultfilters.py

     
    162162
    163163    try:
    164164        m = int(d) - d
    165     except (OverflowError, InvalidOperation):
     165    except (ValueError, OverflowError, InvalidOperation):
    166166        return input_val
    167167
    168168    if not m and p < 0:
Back to Top