Commit 591325b9 authored by Rick Gruber-Riemer's avatar Rick Gruber-Riemer

Explicit exception

parent b5d62add
Pipeline #2252881 skipped
......@@ -231,7 +231,7 @@ done
try:
st = os.stat(f)
os.chmod(f, st.st_mode | stat.S_IEXEC)
except:
print('[ WARNING ] could not add exec rights to ' + f)
except OSError:
logging.warning('[ WARNING ] could not add exec rights to ' + f)
sys.exit(0)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment