[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services/ErrorReportingService - ErrorReportingService.py:1.9

Steve Alexander steve@cat-box.net
Mon, 11 Nov 2002 08:13:07 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Services/ErrorReportingService
In directory cvs.zope.org:/tmp/cvs-serv29271/lib/python/Zope/App/OFS/Services/ErrorReportingService

Modified Files:
	ErrorReportingService.py 
Log Message:
made comment clearer.
made lines break at under 80 chars.


=== Zope3/lib/python/Zope/App/OFS/Services/ErrorReportingService/ErrorReportingService.py 1.8 => 1.9 ===
--- Zope3/lib/python/Zope/App/OFS/Services/ErrorReportingService/ErrorReportingService.py:1.8	Mon Nov 11 08:08:14 2002
+++ Zope3/lib/python/Zope/App/OFS/Services/ErrorReportingService/ErrorReportingService.py	Mon Nov 11 08:13:07 2002
@@ -103,12 +103,13 @@
                                            request.user.getTitle(),
                                            request.user.getDescription()
                                            )
-                    #Incase of unauthorized access handle the AttributeError silently.
+                    # When there's an unauthorized access, request.user is
+                    # not set, so we get an AttributeError
                     except AttributeError:
                         pass
 
-                    req_html = ''.join(['%s : %s<br>' % item for item in request.items()])
-
+                    req_html = ''.join(['%s : %s<br>' % item
+                                        for item in request.items()])
                 try:
                     strv = str(info[1])
                 # XXX bare except clause. Why is this here?