[hooks/syncschema] do not crash if the schema did not learn (yet) some new META rtype (closes #2171313)
--- a/hooks/syncschema.py Thu Feb 02 17:59:52 2012 +0100
+++ b/hooks/syncschema.py Fri Feb 03 14:32:11 2012 +0100
@@ -268,9 +268,8 @@
try:
rschema = schema[rtype]
except KeyError:
- if rtype == 'cw_source':
- continue # XXX 3.10 migration
- raise
+ self.critical('rtype %s was not handled at cwetype creation time', rtype)
+ continue
sampletype = rschema.subjects()[0]
desttype = rschema.objects()[0]
rdef = copy(rschema.rdef(sampletype, desttype))