Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #38850 > unrolled thread
| Started by | Ami Tavory <atavory@gmail.com> |
|---|---|
| First post | 2013-02-14 09:10 +0200 |
| Last post | 2013-02-14 09:10 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
"Exception ... in <generator object ...> ignored" Messages Ami Tavory <atavory@gmail.com> - 2013-02-14 09:10 +0200
| From | Ami Tavory <atavory@gmail.com> |
|---|---|
| Date | 2013-02-14 09:10 +0200 |
| Subject | "Exception ... in <generator object ...> ignored" Messages |
| Message-ID | <mailman.1759.1360825836.2939.python-list@python.org> |
[Multipart message — attachments visible in raw view] — view raw
Hi, Running the unit tests for some generator code, prints, as a side effect, numerous messages of the form: ... Exception NameError: "global name 'l' is not defined" in <generator object _dagpype_internal_fn_act at 0x9d4c500> ignored Exception AttributeError: "'NoneType' object has no attribute 'close'" in <generator object split at 0x7601640> ignored Exception AttributeError: "'NoneType' object has no attribute 'close'" in <generator object split at 0x7601690> ignored ... The tests otherwise run fine. Is there any way to catch the point where such a message originates, and print a traceback? I find it difficult to debug otherwise. I've tried running Python with -W error, catching warnings with context managers, and so forth, but without any success. Thanks!
Back to top | Article view | comp.lang.python
csiph-web