Skip to content

Conversation

@nh13
Copy link
Contributor

@nh13 nh13 commented Aug 28, 2014

This fixes a bug in 0_Browsing.py, whereby a parameter was given to getProjectByUser. Without this, users may get the following exception:

Traceback (most recent call last):
  File "0_Browsing.py", line 71, in <module>
    myProjects   = myAPI.getProjectByUser('current')
  File "/Library/Python/2.7/site-packages/BaseSpacePy/api/BaseSpaceAPI.py", line 528, in getProjectByUser
    queryParams = self._validateQueryParameters(queryPars)               
  File "/Library/Python/2.7/site-packages/BaseSpacePy/api/BaseSpaceAPI.py", line 1222, in _validateQueryParameters
    raise QueryParameterException("Query parameter argument must be a QueryParameter object")
BaseSpacePy.api.BaseSpaceException.QueryParameterException: 'Error with query parameter: Query parameter argument must be a QueryParameter object'

ericsmith2500 added a commit that referenced this pull request Sep 11, 2014
getProjectByUser should take no arguments in the 'Browsing' example
@ericsmith2500 ericsmith2500 merged commit 2ecc1b6 into basespace:master Sep 11, 2014
@ericsmith2500
Copy link
Contributor

Thanks for submitting this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants