Merge pull request #49162 from erwindon/wheel_error_error

Fixed unknown 'exceptions' under Python3 (#49152)
This commit is contained in:
Daniel Wozniak 2018-08-17 10:37:17 -07:00 committed by GitHub
commit 7486fd5447
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,16 +5,13 @@ Utilities to enable exception reraising across the master commands
'''
from __future__ import absolute_import
# Import python libs
try:
import exceptions
except ImportError:
pass
# Import salt libs
import salt.exceptions
import salt.utils.event
# Import 3rd-party libs
from salt.ext.six.moves import builtins as exceptions
def raise_error(name=None, args=None, message=''):
'''