fix None timestamp bug
@@ -567,7 +567,8 @@ class Client(Interface):
from_timestamp = 0
else:
# Get the latest commit recorded on the db
- from_timestamp = self.get_repo(repo_url)['last_scan']
+ # `or` clause needed in case the previous scan attempt was broken
+ from_timestamp = self.get_repo(repo_url)['last_scan'] or 0
# Force complete scan
if force:
