Exception handling error fix

It was found that handling an exception as ‘e’ became an issue. This
was because it was referenced regardless of the except, thus, causing
OSCAR to completely close if some exceptions occurred.