Skip to content

Commit

Permalink
Use default option in Env.bytes()
Browse files Browse the repository at this point in the history
It seems that the default for this particular method was overlooked in !163
  • Loading branch information
DDuarte authored Jan 23, 2019
1 parent c262002 commit ca16f98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion environ/environ.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def bytes(self, var, default=NOTSET, encoding='utf8'):
"""
:rtype: bytes
"""
return self.get_value(var, cast=str).encode(encoding)
return self.get_value(var, cast=str, default=default).encode(encoding)

def bool(self, var, default=NOTSET):
"""
Expand Down

0 comments on commit ca16f98

Please sign in to comment.