Commit 1800c889 authored by Ian Fischer's avatar Ian Fischer

Guard sky_tool logs against failures due to missing idevicesyslog

parent 3b6c6611
......@@ -604,6 +604,17 @@ class IOSDevice(object):
@classmethod
def logs(cls):
try:
cmd = [
'which',
'idevicesyslog'
]
logging.info(' '.join(cmd))
subprocess.check_call(cmd)
except subprocess.CalledProcessError:
logging.error('"log" command only works with iOS devices if you have installed idevicesyslog. Run "brew install libimobiledevice" to install it with homebrew.')
return None
def do_logs():
cmd = [
'idevicesyslog',
......
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