Skip to content

Commit

Permalink
Fix wrong permissions of the Quanty executable
Browse files Browse the repository at this point in the history
  • Loading branch information
mretegan committed Sep 25, 2024
1 parent a461af4 commit e112d89
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/crispy/quanty/calculation.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,8 @@ def run(self, inputName):
# Run Quanty using QProcess.
try:
self.start(self.executablePath, (inputName,))
except FileNotFoundError as error:
raise RuntimeError from error
except (FileNotFoundError, PermissionError) as e:
raise RuntimeError from e

cwd = os.getcwd()
message = f"Running Quanty {inputName} in the folder {cwd}."
Expand Down Expand Up @@ -455,6 +455,10 @@ def executablePath(self):
)
logger.error(message)
raise e
except PermissionError as e:
message = "The Quanty executable does not have the correct permissions."
logger.error(message)
raise e
return path


Expand Down

0 comments on commit e112d89

Please sign in to comment.