Skip to content

Commit

Permalink
Fixed #1 - bypass if setting number is str.isnumeric()
Browse files Browse the repository at this point in the history
  • Loading branch information
return0927 committed Jul 29, 2019
1 parent b7e4f31 commit 981640e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ def _parse_any(cls, inp):
if "," in inp:
return [cls._parse_any(x.strip()) for x in inp.split(",")]

if inp.isnumeric():
return int(inp)

if cls.is_numeric(inp):
return cls._parse_any(float(inp))

Expand Down

0 comments on commit 981640e

Please sign in to comment.