From 2b0b2b455bdba783ccaca4b53bf167d4d102b299 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Fri, 8 May 2020 12:24:18 +0100 Subject: [PATCH] mdwsetup.py: Fix unbound variable reference in error case. This is debris from f74ba2bb507cfeadd5518d5468c7ab7281b581b7 which changed a function into a class, and the `source' argument into (a) a list and (b) an instance variable. Fix this reference which should have changed along with the rest. --- mdwsetup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdwsetup.py b/mdwsetup.py index 94bce8a..6acbdb6 100644 --- a/mdwsetup.py +++ b/mdwsetup.py @@ -181,7 +181,7 @@ class Generate (BaseGenFile): temp = me.target + '.new' with open(temp, 'w') as ft: rc = SUB.call([SYS.executable, me.sources[0]], stdout = ft) - if rc != 0: raise SubprocessFailure, (source, rc) + if rc != 0: raise SubprocessFailure, (me.sources[0], rc) OS.rename(temp, me.target) ## Backward compatibility. -- 2.11.0