#2142: 1.3.5 uses try/except incorrectly in two places
-----------------------+----------------------------------------------------
 Reporter:  stromberg  |       Owner:       
     Type:  bug        |      Status:  new  
 Priority:  minor      |   Milestone:  1.3.6
Component:  other      |     Version:  1.3.5
 Keywords:             |  
-----------------------+----------------------------------------------------
 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.

-- 
Ticket URL: <http://dev.deluge-torrent.org/ticket/2142>
Deluge <http://deluge-torrent.org/>
Deluge project

-- 
You received this message because you are subscribed to the Google Groups 
"Deluge Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-dev?hl=en.

Reply via email to