Ticket #2142 (closed bug: fixed)

Opened 10 months ago

Last modified 10 months ago

1.3.5 uses try/except incorrectly in two places

Reported by: stromberg Owned by:
Priority: minor Milestone: 1.3.6
Component: other Version: 1.3.5
Keywords: Cc: stromberg@…

Description

I believe 1.3.5 uses try/except in a way that fails to catch one of the two listed exceptions, instead overwriting the second exception listed with detail related to the first. I believe this source of bugs is why try/except's syntax was changed slightly in Python 3.x.

The syntax is fine, but I doubt it's doing what's intended.

I've attached a diff that fixes the two bad try/except's by simply adding parentheses to form a tuple of exceptions.

Attachments

excepts.patch (0.9 KB) - added by stromberg 10 months ago.

Change History

Changed 10 months ago by stromberg

Changed 10 months ago by Cas

  • status changed from new to closed
  • resolution set to fixed

Fixed  42118932

Note: See TracTickets for help on using tickets.