Qix-/better-exceptions

activate extension only when BETTER_EXCEPTIONS has true-like value: '1', 'on' or 'yes'

Opened this issue · 2 comments

When you have hierarchy of environment values (eg multiple docker-compose files that override each other) it will be easier to turn on/off this extension by just changing BETTER_EXCEPTIONS from 0 to 1 and vise-versa instead of adding/removing env var from all configs each time...

Qix- commented

I agree. PR welcome. Just test for 1 though, nothing else.

is_truthy is used in some projects and covers most of the variants of this (1, along with capitalised versions of y, t, yes, true).