diff --git a/myhdl/conversion/_analyze.py b/myhdl/conversion/_analyze.py index 5c6997ad..bb4dc244 100644 --- a/myhdl/conversion/_analyze.py +++ b/myhdl/conversion/_analyze.py @@ -655,7 +655,8 @@ class _AnalyzeVisitor(ast.NodeVisitor, _ConversionMixin): elif type(f) is MethodType: self.raiseError(node,_error.NotSupported, "method call: '%s'" % f.__name__) else: - raise AssertionError("Unexpected callable") + debug_info = [e for e in ast.iter_fields(node.func)] + raise AssertionError("Unexpected callable %s" % str(debug_info)) if argsAreInputs: for arg in node.args: self.visit(arg)