Fine.  Then just log the url.  Not the exception.  Logging an exception on bad user input is overkill.