diff options
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/utility/monads.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/utility/monads.py b/wqflask/utility/monads.py index 80ba42c8..e42a60f2 100644 --- a/wqflask/utility/monads.py +++ b/wqflask/utility/monads.py @@ -74,8 +74,8 @@ class MonadicDict(UserDict): converted to monadic values. """ if convert: - super().__init__({key:(Nothing if value is None else Just(value)) - for key, value in d.items()}) + super().__init__({key:Just(value) for key, value in d.items() + if value is not None}) else: super().__init__(d) def __getitem__(self, key): |