[BUGFIX] Remove duplicate exception code