From: Oleg Broytman Date: Sat, 25 Jul 2015 22:40:46 +0000 (+0300) Subject: Fix: last_shown can be None X-Git-Tag: v5.0.0~2 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=0c025723c34e9be1993b0e8f2a597a09fcd31d22;p=xsetbg.git Fix: last_shown can be None --- 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()