]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
run_tasks.py: Python3 don't have exception.message anymore. 1530/head
authorShyukri Shyukriev <shshyukriev@suse.com>
Mon, 6 Jul 2020 08:08:30 +0000 (11:08 +0300)
committerShyukri Shyukriev <shshyukriev@suse.com>
Mon, 6 Jul 2020 08:38:27 +0000 (11:38 +0300)
commit5a6814d2bedce3cc2e3707699f4e5b38e15da12d
tree2629842d6b230697ca0c70e8df11090decad42ce
parent2b31d02380396a9836a0b113746904804e4a5cb7
run_tasks.py: Python3 don't have exception.message anymore.

This was probably working fine due to six library which was removed
recently: https://github.com/ceph/teuthology/commit/9f99b9298265be583c350c71de47109bac4bf6f1

Error seen:

```
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/worker/src/github.com_ceph_teuthology_master/teuthology/contextutil.py", line 33, in nested
    yield vars
  File "/home/worker/src/github.com_ceph_teuthology_master/teuthology/task/install/__init__.py", line 612, in task
    yield
  File "/home/worker/src/github.com_ceph_teuthology_master/teuthology/run_tasks.py", line 151, in run_tasks
    if e.message == 'too many values to unpack':
AttributeError: 'ValueError' object has no attribute 'message'
```

Signed-off-by: Shyukri Shyukriev <shshyukriev@suse.com>
teuthology/run_tasks.py