summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-03-20 14:22:16 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-03-20 14:22:16 +0100
commitaa2999e80b7756c72ddded5eaf7e496c7fd33f82 (patch)
tree5297be56af91fd85c577f2756f79c01220339fbb
parentfb6bceed8c1c32929e1d024b2ce43b945026fe83 (diff)
Default title to 'Untitled' in the page title.
-rw-r--r--pastepy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pastepy.py b/pastepy.py
index 2485c2c..683d300 100644
--- a/pastepy.py
+++ b/pastepy.py
@@ -136,7 +136,7 @@ class Paste(object):
self.start_response('200 OK', [('Content-Type', 'text/html')])
return [str(templates.view(searchList = {
- 'title': '%s &ndash; View paste &ndash; %s' % (settings.pastebin_name, paste.title),
+ 'title': '%s &ndash; View paste &ndash; %s' % (settings.pastebin_name, paste.title or 'Untitled'),
'header': '%s &ndash; View paste' % settings.pastebin_name,
'hash': hash,
'date': paste.date.ctime(),