Message164268
| Author |
ncoghlan |
| Recipients |
Arfrever, Tyler.Crompton, ethan.furman, ncoghlan |
| Date |
2012年06月28日.15:59:34 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1340899175.26.0.0278419216435.issue15209@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
If you don't want the exception context set *at all*, just use a pass statement to get out of the exception before trying the fallback.
try:
return windows_module.getch()
except NameError:
pass # No exception chaining
fallback_module.getch() |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年06月28日 15:59:35 | ncoghlan | set | recipients:
+ ncoghlan, Arfrever, ethan.furman, Tyler.Crompton |
| 2012年06月28日 15:59:35 | ncoghlan | set | messageid: <1340899175.26.0.0278419216435.issue15209@psf.upfronthosting.co.za> |
| 2012年06月28日 15:59:34 | ncoghlan | link | issue15209 messages |
| 2012年06月28日 15:59:34 | ncoghlan | create |
|