app_deploy: handle exceptions in same path check
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
1 parent
14f1b6f936
commit
ede671f0df
1 file changed
+5
-2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user