log this case

This commit is contained in:
Jean-Paul Calderone 2019-03-06 07:51:55 -05:00
parent de9c681fe2
commit 70ec8f2963

View File

@ -546,6 +546,12 @@ NOTIFIED_OBJECT_DISAPPEARED = MessageType(
u"A path which generated a notification was not found on the filesystem. This is normal.",
)
NO_DATABASE_ENTRY = MessageType(
u"magic-folder:no-database-entry",
[],
u"There is no local database entry for a particular relative path in the magic folder.",
)
NOT_UPLOADING = MessageType(
u"magic-folder:not-uploading",
[],
@ -1335,6 +1341,7 @@ class Uploader(QueueMixin):
db_entry = self._db.get_db_entry(relpath_u)
if db_entry is None:
NO_DATABASE_ENTRY.log()
return False
last_downloaded_timestamp = now # is this correct?