Support frida server running error
This commit is contained in:
parent
d6c5c6d148
commit
a2f185ede1
|
@ -203,6 +203,8 @@ class Core:
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
session: Session = self.device.attach(pid, persist_timeout=timeout)
|
session: Session = self.device.attach(pid, persist_timeout=timeout)
|
||||||
|
except frida.ServerNotRunningError as e:
|
||||||
|
raise EnvironmentError('Frida server is not running') from e
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.logger.error(e)
|
self.logger.error(e)
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue