aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Ritter <xeno@thehappy.de>2009-05-15 23:21:56 +0200
committerStefan Ritter <xeno@thehappy.de>2009-05-15 23:21:56 +0200
commitaf872acbd30f49a6f1a96573b27072d2a4c11de4 (patch)
tree06ee0c7ce00c6e7a72c83ddd5c22357c298db51c
parentd386ba0d37302b901b6c74b3fa801731094f5db9 (diff)
parentcb0fec3c03486dc200010368b8d3ec2828bed705 (diff)
Merge branch 'master' of git@fucktheforce.de:blogthon
-rwxr-xr-xblogthon.cgi17
1 files changed, 10 insertions, 7 deletions
diff --git a/blogthon.cgi b/blogthon.cgi
index 2fcb619..bc246ab 100755
--- a/blogthon.cgi
+++ b/blogthon.cgi
@@ -243,13 +243,16 @@ else:
if linklist == "True":
print ' <div class="sidebarentry">'
print ' <small>links</small><br />'
- content = open("linklist", "r")
- for line in content:
- if line.strip() is "":
- print ' <br />'
- else:
- print ' &nbsp;<a href="' + line.split(" ")[0] + '" target="_blank">' + line.split(" ", 1)[1].strip() + '</a>&nbsp;<br />'
- content.close()
+ try:
+ content = open("linklist", "r")
+ for line in content:
+ if line.strip() is "":
+ print ' <br />'
+ else:
+ print ' &nbsp;<a href="' + line.split(" ")[0] + '" target="_blank">' + line.split(" ", 1)[1].strip() + '</a>&nbsp;<br />'
+ content.close()
+ except:
+ print ' <br />'
print ' </div>'
print ' </div>'