Ticket #4089: defaultfilters.py.diff

File defaultfilters.py.diff, 530 bytes (added by rezzrovv <pspierce@…>, 8 years ago)
  • django/template/defaultfilters.py

     
    321321    "Joins a list with a string, like Python's ``str.join(list)``"
    322322    try:
    323323        return arg.join(map(smart_string, value))
    324     except AttributeError: # fail silently but nicely
     324    except AttributeError, TypeError: # fail silently but nicely
    325325        return value
    326326
    327327def length(value):
Back to Top