Index: sodar/trunk/sodar/data.py =================================================================== --- sodar/trunk/sodar/data.py (revision 64) +++ sodar/trunk/sodar/data.py (revision 65) @@ -123,9 +123,9 @@ ''',re.DOTALL | re.VERBOSE) self.__dict__.update(samplePattern.match(sample.strip()).groupdict()) - # self.__dict__.get covers parsing invalid Samples - self.header = self.__dict__.get('header', None) + # getattr with default covers parsing invalid Samples + self.header = getattr(self, 'header', None) if self.header is not None: self.header = Header(self.header) - self.body = self.__dict__.get('body', None) + self.body = getattr(self, 'body', None) if self.body is not None: self.body = Body(self.body)