You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As it is, the current methods for retrieving a model instance are all "hard" methods, in that they all throw a not found exception in the event that there is no record found for the given ID, slug, etc.
There are times however when an exception is not necessary and a simple falsy value would be more efficient. This would allow for more flexibility by not forcing the user to handle exceptions in all cases.
The text was updated successfully, but these errors were encountered:
As it is, the current methods for retrieving a model instance are all "hard" methods, in that they all throw a not found exception in the event that there is no record found for the given ID, slug, etc.
There are times however when an exception is not necessary and a simple falsy value would be more efficient. This would allow for more flexibility by not forcing the user to handle exceptions in all cases.
The text was updated successfully, but these errors were encountered: