Skip to content

Commit

Permalink
Extended fix to lists (class, subject, cle, etc)
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel authored and kevincianfarini committed Jul 9, 2017
1 parent b82fe2c commit cfb34ec
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pyvt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,12 @@ def _parse_table(self, html):
if table is None:
return None
rows = [row for row in table.find_all('tr') if row.attrs == {}]
sections = [self._parse_row(c) for c in rows]
return sections
sections = []
for c in rows:
pc = self._parse_row(c)
if pc is not None:
sections.append(pc)
return None if not sections else sections

def _make_request(self, request_data):
r = requests.post(self.url, data=request_data)
Expand Down

0 comments on commit cfb34ec

Please sign in to comment.