haddocking / proABC-2

Deep learning framework to predict antibody paratope residues
Apache License 2.0
2 stars 0 forks source link

Failed predictions return exit status 0 #4

Closed rvhonorato closed 1 year ago

rvhonorato commented 1 year ago

When a prediction fails, the following is triggered:

https://github.com/haddocking/proABC-2/blob/df88d200bc03f41122701bc23f8b9435b8ee42f4/proABC.py#L291-L294

SystemExit defaults to 0, (see https://docs.python.org/3/library/sys.html#sys.exit) which is considered "successful termination".

So on failed predictions it should exit with

except Exception as err: 
     print('ERROR in proABC-2 prediction:') 
     print(err) 
     raise SystemExit(1)