Skip to content

Conversation

@painter1
Copy link
Contributor

There are two changes here, submitted together because they both involve sdsqlutils.py.

  1. Upon a retry, the failed_url table should be cleared for the retried files. Otherwise they can't be properly retried.
  2. On rare occasions I have seen Synda crash due to duplicate database entries for the same file or similar problems which aren't supposed to happen. This change deals with them by logging an error message, changing a filename, and assigning a special status. Clearing up the problem has to be done manually, but with this change it is not urgent.

…able.

2. In sdsqlutils.insert(), do not crash if sqlite3 raises an IntegrityError.
For example, this can happen if the same file is in two places.  Instead of
a crash, log the event and change the filename.  The database will have to be
fixed manually.
…da can

sometimes detect them but cannot fix them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants