Python.subprocess returns different exceptions on Python 2.7

This commit is contained in:
Radim Kolar 2019-08-16 14:27:54 +02:00
parent eea51abb1d
commit dbf422e8de

View File

@ -1,8 +1,8 @@
#
# SCons DSSSL processor check
#
# Version 1.1
# 08-Sep-2014
# Version 1.2
# 16-Aug-2019
#
import subprocess
@ -19,5 +19,7 @@ def checkDSSSLProcessor(check, name="jade"):
return True
except subprocess.CalledProcessError:
pass
except OSError:
pass
check.Result(False)
return False