Skip to content

Commit 79155c2

Browse files
authored
Merge pull request #43 from cpeel/fix-int-url-escaping
Stringify kwargs before escaping them
2 parents a184b10 + 9f543e8 commit 79155c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def get(self, param, key=None, limit=0, **kwargs):
8282

8383
if kwargs:
8484
url = '{}{}?{}&limit={}'.format(self.base_url, param,
85-
'&'.join('{}={}'.format(key, urllib.parse.quote(val)) for key, val in kwargs.items()), limit)
85+
'&'.join('{}={}'.format(key, urllib.parse.quote(str(val))) for key, val in kwargs.items()), limit)
8686
elif key:
8787
if '_choices' in param:
8888
url = '{}{}{}/?limit={}'.format(self.base_url, param, key, limit)

0 commit comments

Comments
 (0)