Advertisement
rfmonk

subprocess_check_call.py

Jan 31st, 2014
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. import subprocess
  2.  
  3. try:
  4.     subprocess.check_call(['false'])
  5. except subprocess.CalledProcessError as err:
  6.     print 'ERROR:', err
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement