From 0c025723c34e9be1993b0e8f2a597a09fcd31d22 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 26 Jul 2015 01:40:46 +0300 Subject: [PATCH] Fix: last_shown can be None --- reload_db.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reload_db.py b/reload_db.py index ee51b39..f6dff81 100755 --- a/reload_db.py +++ b/reload_db.py @@ -46,7 +46,8 @@ with SQLiteMassInsert() as txn: count_new += 1 else: assert id is None or row.id == id - assert row.last_shown == timestamp + if row.last_shown is not None: + assert row.last_shown == timestamp count_old += 1 dump_file.close() -- 2.39.5