devopshq / tfs

Microsoft TFS API Python client
https://devopshq.github.io/tfs/
MIT License
110 stars 28 forks source link

Avoid UnboundLocalError when using TFSAPI.definitions() with default argument #90

Closed phispi closed 3 years ago

phispi commented 3 years ago

When calling TFSAPI.definitions() without parameter nameFilter, a UnboundLocalError is raised ("UnboundLocalError: local variable 'payload' referenced before assignment" in line 195 of connection.py) This pull request fixes this issue (and as a side effect also updates the docstring to match the parameter name).