mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #49162 from erwindon/wheel_error_error
Fixed unknown 'exceptions' under Python3 (#49152)
This commit is contained in:
commit
7486fd5447
1 changed files with 3 additions and 6 deletions
|
@ -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=''):
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue