diff --git a/uncompyle6/semantics/pysource.py b/uncompyle6/semantics/pysource.py index 9f24503b..87b1c771 100644 --- a/uncompyle6/semantics/pysource.py +++ b/uncompyle6/semantics/pysource.py @@ -2297,7 +2297,7 @@ class SourceWalker(GenericASTTraversal, object): pass have_qualname = False - if len(ast[0]): + if len(ast): if ast[0] == "sstmt": ast[0] = ast[0][0] first_stmt = ast[0]