abg / dbsake

Collection of mysql tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sandbox suppresses error messages during downloads

abg opened this issue · comments

Noticed this due to a gpg verification failure, where no error message was output. This can be seen with the following command:

# ./dbsake sandbox -m 5.1.70

This seems to be caused by incorrectly reraising the exception in contextlib.nested(). This is a dbsake bug, as this code was incorrectly modified when attempting to support both python2 and python3.

The intention is to replace that ugliness with ExitStack() instead, but care needs to be taken to ensure both python2 and python3 support.

The conversion to use ExitStack() has been done in 2.1.0. Closing this issue.