mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
runtests.py: use except-as syntax
This commit is contained in:
parent
874194faa9
commit
a6a356a3e4
@ -32,7 +32,7 @@ XML_OUTPUT_DIR = os.environ.get(
|
||||
try:
|
||||
if SALT_ROOT:
|
||||
os.chdir(SALT_ROOT)
|
||||
except OSError, err:
|
||||
except OSError as err:
|
||||
print 'Failed to change directory to salt\'s source: {0}'.format(err)
|
||||
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user