def load(self):
    try:
        (self.contents, self.parser) = self._parse()
    except Exception as e:
        ext = os.path.splitext(self.uri)[1][1:]
        if [lext for lext in PARSABLES.values() if (ext in lext)]:
            self.error = e
        else:
            for p in PARSABLES.keys():
                try:
                    (self.contents, self.parser) = self._parse(p)
                    self.error = None
                    break
                except Exception as e:
                    pass
def load(self):
    try:
        (self.contents, self.parser) = self._parse()
    except Exception as e:
        ext = os.path.splitext(self.uri)[1][1:]
        if [lext for lext in PARSABLES.values() if (ext in lext)]:
            self.error = e
        else:
            for p in PARSABLES.keys():
                try:
                    (self.contents, self.parser) = self._parse(p)
                    self.error = None
                    break
                except Exception as e:
                    pass