summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 – 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(),