Skip to content

Commit

Permalink
Merge pull request #4 from morepath/adapt_pyramid_tm_fixes
Browse files Browse the repository at this point in the history
Remove py2.5 syntax
  • Loading branch information
henri-hulski committed May 30, 2016
2 parents d6897b0 + fe275f0 commit 83713df
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions more/transaction/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ def transaction_tween(request):
raise AbortResponse(response)
manager.commit()
return response
except AbortResponse:
e = sys.exc_info()[1] # py2.5-py3 compat
except AbortResponse as e:
manager.abort()
return e.response
except:
Expand Down

0 comments on commit 83713df

Please sign in to comment.