better-exceptions icon indicating copy to clipboard operation
better-exceptions copied to clipboard

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

Open vanyakosmos opened this issue 5 years ago • 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...

vanyakosmos avatar Mar 06 '20 19:03 vanyakosmos

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

Qix- avatar Mar 07 '20 02:03 Qix-

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).

stuaxo avatar Jun 01 '22 13:06 stuaxo