Skip to content

Commit

Permalink
fix travis ci error gdcc#5
Browse files Browse the repository at this point in the history
  • Loading branch information
skasberger committed May 20, 2019
1 parent 96df9b0 commit 99ff93a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/pyDataverse/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,6 @@ def create_dataverse(self, identifier, metadata, auth=True,

query_str = '/dataverses/{0}'.format(parent)
resp = self.make_post_request(query_str, metadata, auth)
print(resp.status_code)
print(resp.json())

if resp.status_code == 404:
error_msg = resp.json()['message']
Expand Down Expand Up @@ -553,6 +551,11 @@ def create_dataset(self, dataverse, metadata, auth=True):
query_str = '/dataverses/{0}/datasets'.format(dataverse)
resp = self.make_post_request(query_str, metadata, auth)

print(query_str)
print(metadata)
print(resp.status_code)
print(resp.json())

if resp.status_code == 404:
error_msg = resp.json()['message']
raise DataverseNotFoundError(
Expand Down

0 comments on commit 99ff93a

Please sign in to comment.