beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Work logged] (BEAM-3872) BaseException.message deprecated as of Python 2.6 and removed in Python 3
Date Sun, 18 Mar 2018 19:56:00 GMT


ASF GitHub Bot logged work on BEAM-3872:

                Author: ASF GitHub Bot
            Created on: 18/Mar/18 19:55
            Start Date: 18/Mar/18 19:55
    Worklog Time Spent: 10m 
      Work Description: aaltay closed pull request #4886: [BEAM-3872] Change Exception.message
--> Exception.args[0]

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/sdks/python/apache_beam/typehints/ b/sdks/python/apache_beam/typehints/
index b22be1ef2c8..8ee0269c6d6 100644
--- a/sdks/python/apache_beam/typehints/
+++ b/sdks/python/apache_beam/typehints/
@@ -176,7 +176,7 @@ def _type_check(self, type_constraint, datum, is_input):
       check_constraint(type_constraint, datum)
     except CompositeTypeHintError as e:
-      six.raise_from(TypeCheckError(e.message), sys.exc_info()[2])
+      six.raise_from(TypeCheckError(e.args[0]), sys.exc_info()[2])
     except SimpleTypeHintError:
       error_msg = ("According to type-hint expected %s should be of type %s. "
                    "Instead, received '%s', an instance of type %s."


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:

Issue Time Tracking

    Worklog Id:     (was: 81684)
    Time Spent: 40m  (was: 0.5h)

> BaseException.message deprecated as of Python 2.6 and removed in Python 3
> -------------------------------------------------------------------------
>                 Key: BEAM-3872
>                 URL:
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py-core
>            Reporter: cclauss
>            Assignee: Ahmet Altay
>            Priority: Minor
>   Original Estimate: 1m
>          Time Spent: 40m
>  Remaining Estimate: 0h
> From the Travis logs...
> ./sdks/python/apache_beam/typehints/ DeprecationWarning: BaseException.message
has been deprecated as of Python 2.6
>   six.raise_from(TypeCheckError(e.message), sys.exc_info()[2])
> e.args[0] should be used in place of e.message

This message was sent by Atlassian JIRA

View raw message