Skip to content
This repository was archived by the owner on Oct 17, 2023. It is now read-only.

Commit dff5ecd

Browse files
authored
Merge pull request #16 from btubbs/v3
Fail more noisily if no path or file provided to Request.get_file
2 parents 31d71b1 + ca8277c commit dff5ecd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

hellosign_sdk/utils/request.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ def get_file(self, url, path_or_file=None, headers=None, filename=None):
8686
'''
8787
path_or_file = path_or_file or filename
8888

89+
if not path_or_file:
90+
raise ValueError('Must provide path_or_file argument.')
91+
8992
if self.debug:
9093
print("GET FILE: %s, headers=%s" % (url, headers))
9194

0 commit comments

Comments
 (0)