Skip to content

Commit

Permalink
python3: fix reraise
Browse files Browse the repository at this point in the history
  • Loading branch information
hartsock committed Jul 29, 2014
1 parent 54b9b9d commit abbb274
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyVim/connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ def __Login(host, port, user, pwd, service, adapter, version, path,
# why the connection failed beyond the message string.
(type, value, traceback) = sys.exc_info()
if traceback:
reraise(vim.fault.HostConnectFault(msg=str(e)), None, traceback)
fault = vim.fault.HostConnectFault(msg=str(e))
reraise(vim.fault.HostConnectFault, fault, traceback)
else:
raise vim.fault.HostConnectFault(msg=str(e))

Expand Down

0 comments on commit abbb274

Please sign in to comment.