# HG changeset patch # User Sylvain Thénault # Date 1271344939 -7200 # Node ID 540fa73caac6e74b54e7eb273fff585fd929439b # Parent 92e9efc8cad5b7485a1a6ccee7a55e8d83922b5e [migration] fix error when synchronizing everything and some schema still in the db schema but not anymore in the fs schema diff -r 92e9efc8cad5 -r 540fa73caac6 server/migractions.py --- a/server/migractions.py Thu Apr 15 16:47:04 2010 +0200 +++ b/server/migractions.py Thu Apr 15 17:22:19 2010 +0200 @@ -976,7 +976,13 @@ if syncprops: self._synchronize_eschema(etype, syncperms=syncperms) else: - self._synchronize_permissions(self.fs_schema[etype], etype.eid) + try: + fseschema = self.fs_schema[etype] + except KeyError: + # entity type in the repository schema but not anymore + # on the fs schema + continue + self._synchronize_permissions(fseschema, etype.eid) if commit: self.commit()