diff --git a/opshin/compiler.py b/opshin/compiler.py index f43956f4..3e8bd315 100644 --- a/opshin/compiler.py +++ b/opshin/compiler.py @@ -360,7 +360,7 @@ def visit_Module(self, node: TypedModule) -> plt.AST: return cp def visit_Constant(self, node: TypedConstant) -> plt.AST: - if isinstance(node.value, bytes): + if isinstance(node.value, bytes) and node.value != b"": try: bytes.fromhex(node.value.decode()) except ValueError: