Repository navigation
Commit dcdd3df
fix NameError in the madgraph-in-PYTHONPATH guard of the launchers
Both bin/madevent (LO) and bin/aMCatNLO (NLO) import only `logging`, but
the guard body called `logger.getLogger(...)`. The name `logger` is never
bound in either script, so instead of warning that madgraph is importable
the launcher died with
NameError: name 'logger' is not defined
Use `logging.getLogger('madgraph')` so the intended error is emitted.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 49c0785 commit dcdd3df
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
0 commit comments