]> git.phdru.name Git - xsetbg.git/commitdiff
Fix: last_shown can be None
authorOleg Broytman <phd@phdru.name>
Sat, 25 Jul 2015 22:40:46 +0000 (01:40 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 25 Jul 2015 22:40:46 +0000 (01:40 +0300)
reload_db.py

index ee51b392aedb6048c6cf4dada016ae7cb7f930dd..f6dff81d39e69b6fa6e3d5b95520ff594bacb6a4 100755 (executable)
@@ -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()