~kevang/mnemosyne-proj/grade-shortcuts-improvements

« back to all changes in this revision

Viewing changes to mnemosyne/mnemosyne/libmnemosyne/upgrades/upgrade1.py

  • Committer: Peter.Bienstman at UGent
  • Date: 2014-12-15 20:21:56 UTC
  • Revision ID: peter.bienstman@ugent.be-20141215202156-0lrnw8jylmak5tkb
Make upgrade code more robust.

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
            ["backups", "config", "config.py", "config.pyc",
112
112
            "DIRECTORY_NO_LONGER_USED_BY_MNEMOSYNE2", "error_log.txt",
113
113
            "latex", "plugins", "log.txt", "history"] \
114
 
            and not name.endswith(".mem")]
 
114
            and not name.endswith(".mem") and not name is None]
115
115
        self.main_widget().set_progress_text(_("Copying files from 1.x..."))
116
116
        # By copying over the history folder and log.txt, we also completely
117
117
        # preserve the state of all the files that need to uploaded to the