app_deploy: handle exceptions in same path check
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
14f1b6f936
commit
ede671f0df
|
@ -147,8 +147,11 @@ class AppDeploy(BaseDeploy):
|
|||
executable = executable.expanduser()
|
||||
if self.executable is None:
|
||||
return False
|
||||
return self.path.samefile(app_path) and \
|
||||
self.executable.samefile(executable)
|
||||
try:
|
||||
return self.path.samefile(app_path) and \
|
||||
self.executable.samefile(executable)
|
||||
except Exception:
|
||||
return False
|
||||
|
||||
async def recover(self,
|
||||
hard: bool = False,
|
||||
|
|
Loading…
Reference in New Issue