kelvan / gotoVienna

PySide app for harmattan(N9), searching on wienerlinien.at; see https://github.com/kelvan/sailtoVienna for SailfishOS Version
https://www.logic.at/staff/kelvan/python/gotovienna/index.html
GNU General Public License v3.0
3 stars 0 forks source link

Parser for "correct your search" page and better error handling #2

Closed kelvan closed 13 years ago

kelvan commented 13 years ago

prevent this:

Error calling slot "search" Traceback (most recent call last): File "pyWienerLinien.py", line 51, in search self._s.open_qml() File "/media/home/kelvan2/workspace/python/pyqt/pyWienerLinien/wlSearch.py", line 56, in open_qml self.qml_model = QMLModel(p.overview) File "/media/home/kelvan2/workspace/python/pyqt/pyWienerLinien/parseHtml.py", line 70, in overview self._overview = self._parse_overview() File "/media/home/kelvan2/workspace/python/pyqt/pyWienerLinien/parseHtml.py", line 51, in _parse_overview rows = table.findAll('tr')[1:] AttributeError: 'NoneType' object has no attribute 'findAll'