[
https://issues.apache.org/jira/browse/BEAM-5319?focusedWorklogId=146903&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-146903
]
ASF GitHub Bot logged work on BEAM-5319:
----------------------------------------
Author: ASF GitHub Bot
Created on: 23/Sep/18 17:23
Start Date: 23/Sep/18 17:23
Worklog Time Spent: 10m
Work Description: RobbeSneyders commented on a change in pull request
#6451: [BEAM-5319] Partially port runners
URL: https://github.com/apache/beam/pull/6451#discussion_r219304703
##########
File path: sdks/python/apache_beam/runners/common.py
##########
@@ -703,7 +703,8 @@ def _reraise_augmented(self, exn):
raise
step_annotation = " [while running '%s']" % self.step_name
# To emulate exception chaining (not available in Python 2).
- original_traceback = sys.exc_info()[2]
+ if isinstance(exn.args[0], BaseException):
+ exn = exn.args[0]
Review comment:
In Python 2 the arguments to the exception was available by iterating over
the exception. In Python 3, the arguments are contained in the `.args`
attribute.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 146903)
Time Spent: 10m
Remaining Estimate: 0h
> Finish Python 3 porting for runners module
> ------------------------------------------
>
> Key: BEAM-5319
> URL: https://issues.apache.org/jira/browse/BEAM-5319
> Project: Beam
> Issue Type: Sub-task
> Components: sdk-py-core
> Reporter: Robbe
> Assignee: Robbe
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)