Category Archives: Python

Exceptions

I see on a lot of projects stuff like this: function getStuff() { try { return $this->retrieveStuff() } catch (Exception $e) { return null; } } The issue, in this example, is not that we silence an error. It should be logged, but there could be a legitimate use for this. For instance, it requires [...]

Also posted in PHP, Symfony | Leave a comment
Bear