app_deploy: handle exceptions in same path check

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2022-01-24 15:27:07 -05:00 committed by Eric Callahan
parent 14f1b6f936
commit ede671f0df
1 changed files with 5 additions and 2 deletions

View File

@ -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,