You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Fokko Driesprong (JIRA)" <ji...@apache.org> on 2017/09/24 19:10:00 UTC

[jira] [Created] (AIRFLOW-1639) ValueError does not have .message attribute

Fokko Driesprong created AIRFLOW-1639:
-----------------------------------------

             Summary: ValueError does not have .message attribute
                 Key: AIRFLOW-1639
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1639
             Project: Apache Airflow
          Issue Type: Bug
            Reporter: Fokko Driesprong
            Assignee: Fokko Driesprong


Hi all,

I would like to propose a small fix which I encountered when working on another PR:
```
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/flask_admin/contrib/sqla/view.py", line 1017, in create_model
    form.populate_obj(model)
  File "/usr/local/lib/python3.6/site-packages/wtforms/form.py", line 96, in populate_obj
    field.populate_obj(obj, name)
  File "/usr/local/lib/python3.6/site-packages/wtforms/fields/core.py", line 327, in populate_obj
    setattr(obj, name, self.data)
  File "<string>", line 1, in __set__
  File "/airflow/airflow/models.py", line 3929, in set_val
    fernet = get_fernet()
  File "/airflow/airflow/models.py", line 105, in get_fernet
    .format(ve.message))
AttributeError: 'Error' object has no attribute 'message'
```

Cheers, Fokko



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)