mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-21 23:42:14 +00:00
Caught type-error for old events
This commit is contained in:
@@ -210,7 +210,10 @@ class EventRevisions(generic.ListView):
|
|||||||
old.append(v)
|
old.append(v)
|
||||||
new.append(d2[k])
|
new.append(d2[k])
|
||||||
except KeyError:
|
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)
|
return zip(key,old,new)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user