projects
/
pywienerlinien
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f11160c
)
[FIX] AttributeError if station without link
author
Florian Schweikert
<kelvan@logic.at>
Tue, 27 Sep 2011 00:55:37 +0000
(
02:55
+0200)
committer
Florian Schweikert
<kelvan@logic.at>
Tue, 27 Sep 2011 00:55:37 +0000
(
02:55
+0200)
iTip.py
patch
|
blob
|
history
diff --git
a/iTip.py
b/iTip.py
index
a0941ea
..
4b63f61
100644
(file)
--- a/
iTip.py
+++ b/
iTip.py
@@
-65,6
+65,10
@@
class iParser:
#TODO parse line name and direction for station site parsing
+ if not url:
+ # FIXME prevent from calling this method with None
+ return []
+
bs = BeautifulSoup(urlopen(url))
result_lines = bs.findAll('table')[-1].findAll('tr')