Fix warning when it shouldn't be thrown
Merge pull request #1458 from jrfnl/Issue-1457

Prevent warning when it shouldn't be thrown, props @jrfnl