Commits

Jan Borsodi committed 8d1404d

Fixed symbol type attribute access.

  • Participants
  • Parent commits b9cdee7
  • Branches fixes

Comments (0)

Files changed (1)

File hob/parser.py

         for sym in self._symbols:
             item = self.package.find(sym.name, sym.current)
             if not isinstance(item, sym.kind):
-                raise TypeError("Expected type %s for symbol %s.%s" % (sym.type.__name__, sym.package, sym.name))
+                raise TypeError("Expected type %s for symbol %s" % (sym.kind.__name__, ".".join(sym.current.path() + [sym.name])))
             setattr(sym.owner, sym.attribute, item)
             if sym.callback:
                 sym.callback(sym, item)