New submission from Tom Kuiper:

This error comes from the logging module when a message is logged, but only 
when I also import another module which does use logging at all:

Traceback (most recent call last):
  File "/usr/lib/python2.6/logging/__init__.py", line 776, in emit
    msg = self.format(record)
  File "/usr/lib/python2.6/logging/__init__.py", line 654, in format
    return fmt.format(record)
  File "/usr/lib/python2.6/logging/__init__.py", line 437, in format
    if string.find(self._fmt,"%(asctime)") >= 0:
  File "/usr/lib/python2.6/string.py", line 361, in find
    return s.find(*args)
AttributeError: 'int' object has no attribute 'find'

The module source is attached.  Some of it's submodules were built with f2py.

----------
components: Library (Lib)
files: __init__.py
messages: 174247
nosy: kuiper
priority: normal
severity: normal
status: open
title: error when logging message
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file27803/__init__.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16368>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to