~mnordhoff/loggerhead/cheezum

« back to all changes in this revision

Viewing changes to loggerhead/util.py

Don't traceback if we can't get last-changed date from a branch. Bug #254794

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
 
60
60
 
61
61
def date_time(value):
62
 
    return value.strftime('%Y-%m-%d %T')
 
62
    if value is not None:
 
63
        return value.strftime('%Y-%m-%d %T')
 
64
    else:
 
65
        return 'N/A'
63
66
 
64
67
 
65
68
def _displaydate(date):