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()
|
executable = executable.expanduser()
|
||||||
if self.executable is None:
|
if self.executable is None:
|
||||||
return False
|
return False
|
||||||
return self.path.samefile(app_path) and \
|
try:
|
||||||
self.executable.samefile(executable)
|
return self.path.samefile(app_path) and \
|
||||||
|
self.executable.samefile(executable)
|
||||||
|
except Exception:
|
||||||
|
return False
|
||||||
|
|
||||||
async def recover(self,
|
async def recover(self,
|
||||||
hard: bool = False,
|
hard: bool = False,
|
||||||
|
|
Loading…
Reference in New Issue