SVN: r25236 - trunk/quixote
Neil Schemenauer <nascheme-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Thu, 30 Sep 2004 14:26:48 -0400
| Newsgroups | gmane.comp.web.quixote.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: nascheme
Date: 2004-09-30 14:25:52 -0400 (Thu, 30 Sep 2004)
New Revision: 25236
Modified:
trunk/quixote/mod_python_handler.py
Log:
Support older versions of mod_python that don't support the per-request
log_error method.
Modified: trunk/quixote/mod_python_handler.py
===================================================================
--- trunk/quixote/mod_python_handler.py 2004-09-30 18:10:44 UTC (rev 25235)
+++ trunk/quixote/mod_python_handler.py 2004-09-30 18:25:52 UTC (rev 25236)
@@ -30,9 +30,9 @@
def log(self, msg):
if self.error_log is self.__error_log:
- if self.__apache_request:
+ try:
self.__apache_request.log_error(msg)
- else:
+ except AttributeError:
apache.log_error(msg)
else:
Publisher.log(self, msg)