From aa2999e80b7756c72ddded5eaf7e496c7fd33f82 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sat, 20 Mar 2010 14:22:16 +0100 Subject: Default title to 'Untitled' in the page title. --- pastepy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 – View paste – %s' % (settings.pastebin_name, paste.title), + 'title': '%s – View paste – %s' % (settings.pastebin_name, paste.title or 'Untitled'), 'header': '%s – View paste' % settings.pastebin_name, 'hash': hash, 'date': paste.date.ctime(), -- cgit v1.2.3