Skip to content

Commit

Permalink
Reopen the collection after export
Browse files Browse the repository at this point in the history
  • Loading branch information
gmcmanus committed May 6, 2020
1 parent 53d210c commit aba5bf0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backup/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@ def backup(media_sync_running: bool) -> None:
exporter = AnkiCollectionPackageExporter(mw.col)
exporter.exportInto(backup_path)

# exportInto closes the collection, so we need to reopen it
mw.reopen()


main()

0 comments on commit aba5bf0

Please sign in to comment.