Review the usage of `try`/`catch` in the `parseExpiry` function
Currently a try
/catch
is used to catch exceptions raised by new DateTime
, but it has crept a bit and there is other stuff in there which could probably be removed to improve code quality/readability.