Skip to content

Commit

Permalink
Merge pull request #1333 from jayg-ts/issue_750
Browse files Browse the repository at this point in the history
Issue 750
  • Loading branch information
davidism committed May 31, 2019
2 parents 3932d80 + 84d685c commit 0f84f11
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/parameters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ integers::
elif value[:1] == '0':
return int(value, 8)
return int(value, 10)
except TypeError:
self.fail('expected string for int() conversion, got %s of type %s'
% (value, type(value).__name__), param, ctx)
except ValueError:
self.fail('%s is not a valid integer' % value, param, ctx)

Expand Down

0 comments on commit 0f84f11

Please sign in to comment.