Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Call to team_matches throws error #26

Closed
hybrezz54 opened this issue Apr 18, 2018 · 3 comments
Closed

Call to team_matches throws error #26

hybrezz54 opened this issue Apr 18, 2018 · 3 comments

Comments

@hybrezz54
Copy link

hybrezz54 commented Apr 18, 2018

Here is the stacktrace that is printed when trying to call team_matches:

File "<stdin>", line 1, in <module>
File "C:\Python36\lib\site-packages\tbapy\main.py", line 139, in team_matches
  return [Match(raw) for raw in self.__get('team/%s/event/%s/matches%s' % (self.team_key(team), event, '/simple' if simple else''))]
File "C:\Python36\lib\site-packages\tbapy\main.py", line 139, in <listcomp>
  return [Match(raw) for raw in self.__get('team/%s/event/%s/matches%s' % (self.team_key(team), event, '/simple' if simple else''))]
File "C:\Python36\lib\site-packages\tbapy\models.py", line 3, in __init__
  self.update(json)
ValueError: dictionary update sequence element #0 has length 1; 2 is required

I am running this on a Windows 10 laptop, too.

@ErikBoesen
Copy link
Member

I can't reproduce this. What code did you use to cause the error?

@hybrezz54
Copy link
Author

hybrezz54 commented Apr 18, 2018 via email

@ErikBoesen
Copy link
Member

You can name those parameters of you wish.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants