Skip to content

Commit

Permalink
Merge pull request #189 from fuhrysteve/reraise_original_exception
Browse files Browse the repository at this point in the history
Reraise original exception instead of a new one
  • Loading branch information
kvesteri authored Jun 12, 2018
2 parents d4ed900 + 79b9876 commit 5a3fbcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sqlalchemy_continuum/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def wrapper(self, mapper, connection, target):
uow = self.unit_of_work(session)
break # The ConnectionFairy is the same, this connection is a clone
else:
raise KeyError
raise
return func(self, uow, target)
return wrapper

Expand Down Expand Up @@ -400,7 +400,7 @@ def append_association_operation(self, conn, table_name, params, op):
uow = self.unit_of_work(conn.session)
break # The ConnectionFairy is the same, this connection is a clone
else:
raise KeyError
raise
uow.pending_statements.append(stmt)

def track_cloned_connections(self, c, opt):
Expand Down

0 comments on commit 5a3fbcf

Please sign in to comment.