We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef5c2c2 commit 6b0cf03Copy full SHA for 6b0cf03
HISTORY.rst
@@ -3,6 +3,10 @@
3
Release History
4
---------------
5
6
+Next Release
7
+++++++++
8
+- Allow ints to be passed in as item IDs
9
+
10
2.9.0 (2020-06-23)
11
++++++++
12
- Fix exception handling for OAuth
boxsdk/object/item.py
@@ -752,12 +752,12 @@ def validate_item_id(item_id):
752
753
:param item_id:
754
:type item_id:
755
- `str`
+ `str` or `int`
756
:raises:
757
BoxException: if item_id is not numeric
758
:returns:
759
:rtype:
760
None
761
"""
762
- if not item_id.isdigit():
+ if not isinstance(item_id, int) and not item_id.isdigit():
763
raise BoxValueError("Invalid item ID")
0 commit comments