mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 13:32:15 +00:00
Caught type-error for old events
This commit is contained in:
@@ -210,7 +210,10 @@ class EventRevisions(generic.ListView):
|
||||
old.append(v)
|
||||
new.append(d2[k])
|
||||
except KeyError:
|
||||
old.update({k: v})
|
||||
old.append({k: v})
|
||||
except TypeError:
|
||||
# avoids issues with naive vs tz-aware datetimes
|
||||
old.append({k: v})
|
||||
|
||||
return zip(key,old,new)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user