make exception more robust for when opening PRs


 Sent using [Gush](https://github.com/gushphp/gush)