Skip to content

Commit 8573504

Browse files
committed
Fix misleading missing environment variable error message
1 parent a1efeae commit 8573504

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
2828

2929
- Ensured Meta is a class.
3030
- Fixed `Env.prefixed` not resetting the prefix on exceptions.
31+
- Fixed misleading missing environment variable error messages.
3132

3233
## [0.1.2] - 2019-03-17
3334

class_settings/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __call__(self, name=None, *, prefix=missing, default=missing, optional=False
5656
return os.environ[name]
5757
except KeyError:
5858
raise ImproperlyConfigured(
59-
"Environment variable {!r} not set".format(name.upper())
59+
"Environment variable {!r} not set".format(name)
6060
) from None
6161

6262
def __getattr__(self, name):

0 commit comments

Comments
 (0)