Support frida server running error

This commit is contained in:
hyugogirubato 2024-07-06 21:41:33 +02:00
parent d6c5c6d148
commit a2f185ede1
1 changed files with 2 additions and 0 deletions

View File

@ -203,6 +203,8 @@ class Core:
"""
try:
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:
self.logger.error(e)
return False