Skip to content

Commit 7824ef2

Browse files
committed
bugfix catch passing None to requests as kwargs
1 parent 3e1e29d commit 7824ef2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# cappy v1.1.0
1+
# cappy v1.1.1
22
The Redcap API library that you build yourself.
33

44
## Ideology ##

cappy/cap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(self, token, endpoint, version_file, requests_options={}):
2929
auto generated API functions
3030
"""
3131
version_path = utils.path_for_version(version_file)
32-
self.requests_options = requests_options
32+
self.requests_options = requests_options or {}
3333
with open(version_path, 'r') as api_def:
3434
version_data = yaml.load(api_def.read())
3535
self.api_definition = version_data.get('api_def') or version_data

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from setuptools import setup
22

33
setup(name='cappy',
4-
version='1.1.0',
4+
version='1.1.1',
55
description='The redcap api you build yourself',
66
url='http://github.com/pfwhite/cappy',
77
author='Patrick White',

0 commit comments

Comments
 (0)