cubicweb-oaipmh #16149839 KeyError on bad metadata prefix for a given setspect [validation pending]

::
File "/usr/share/cubicweb/cubes/oaipmh/views.py", line 197, in rset

metadata_prefix=self.metadata_prefix, **dates)

ReST / HTML errors:System Message: WARNING/2 (&lt;string&gt; , line 3); <em>backlink</em></p>
Inline strong start-string without end-string.
ReST / HTML errors:System Message: WARNING/2 (&lt;string&gt; , line 4)</p>
Block quote ends without a blank line; unexpected unindent.
File "/usr/share/cubicweb/cubes/oaipmh/entities.py", line 133, in match
and setspec.setkey not in self.__setspecs_by_format__[metadata_prefix]):
ReST / HTML errors:System Message: WARNING/2 (&lt;string&gt; , line 6)</p>
Definition list ends without a blank line; unexpected unindent.

KeyError: u'xsd'

prioritynormal
typebug
done in0.4.1
load left0.000
closed by#ee88a3c511d8 Raise proper error when a bad metadata prefix is given with some setspec
patchMove OAI exceptions definition at top package level [applied]Raise proper error when a bad metadata prefix is given with some setspec [applied]