Commit 4758f493 authored by Shane Hathaway's avatar Shane Hathaway

Don't fail if no URL is available.

parent 5438d262
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
############################################################################## ##############################################################################
"""Site error log module. """Site error log module.
$Id: SiteErrorLog.py,v 1.6 2002/04/26 16:17:21 htrd Exp $ $Id: SiteErrorLog.py,v 1.7 2002/05/22 15:14:14 shane Exp $
""" """
import os import os
...@@ -150,7 +150,7 @@ class SiteErrorLog (SimpleItem): ...@@ -150,7 +150,7 @@ class SiteErrorLog (SimpleItem):
username = None username = None
req_html = None req_html = None
if request: if request:
url = request['URL'] url = request.get('URL', '?')
username = getSecurityManager().getUser().getUserName() username = getSecurityManager().getUser().getUserName()
try: try:
req_html = str(request) req_html = str(request)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment