Skip to content

Commit

Permalink
don't error if partial
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanNoelk committed Nov 19, 2018
1 parent 4ad483a commit 3855daf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions v1/recipe/save_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ def required(self, item):
return None if item else "This item is required."
return None

@staticmethod
def is_digit(item):
def is_digit(self, item):
if self.partial and item is None:
return None
try:
int(item)
except:
Expand Down

0 comments on commit 3855daf

Please sign in to comment.