From f7e08ec46b5f4ce8d2767aae9c568b5c27cfe1d0 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sat, 28 Apr 2018 01:03:08 +0000 Subject: [PATCH] Unbreak f35f1001. --- artiq/compiler/embedding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/compiler/embedding.py b/artiq/compiler/embedding.py index e72adeee2..539e4ddad 100644 --- a/artiq/compiler/embedding.py +++ b/artiq/compiler/embedding.py @@ -751,7 +751,7 @@ class Stitcher: def _function_loc(self, function): if isinstance(function, SpecializedFunction): function = function.host_function - if hasattr(function, 'artiq_embedded'): + if hasattr(function, 'artiq_embedded') and function.artiq_embedded.function: function = function.artiq_embedded.function filename = function.__code__.co_filename