Keep errors from bothering you.
from subprocess import call
try:
requests.get(url)
except:
call(["sudo shutdown now -h"])
Post
August 9, 2017
August 9, 2017
Keep errors from bothering you.
from subprocess import call
try:
requests.get(url)
except:
call(["sudo shutdown now -h"])