For loggers, the variable exc_info should be set to a non-False value according to Python 2.7. However, in the example, it was set to what would be an undefined variable. Later in example 24.4 we see a correct usage. The difference between the two examples could be slightly confusing, not to mention the code in example 24.1 wouldn't just work.
For loggers, the variable exc_info should be set to a non-False value according to Python 2.7. However, in the example, it was set to what would be an undefined variable. Later in example 24.4 we see a correct usage. The difference between the two examples could be slightly confusing, not to mention the code in example 24.1 wouldn't just work.