Bugs item #1737864, was opened at 2007-06-15 14:50 Message generated for change (Comment added) made by gbrandl You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1737864&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Extension Modules Group: Python 2.4 >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Dmitrii Tisnek (dimaq) Assigned to: Vinay Sajip (vsajip) Summary: logging.exception() does not allow empty string Initial Comment: Due to the following code, logging.exception("") does not work. I suggest replacing s[-1]=="\n" with s.endswith("\n"). logging/__init__.py:formatException(): --snip-- if s[-1] == "\n": s = s[:-1] return s ---------------------------------------------------------------------- >Comment By: Georg Brandl (gbrandl) Date: 2007-06-19 12:36 Message: Logged In: YES user_id=849994 Originator: NO Fixed in rev. 56038, 56039 (2.5). ---------------------------------------------------------------------- Comment By: Georg Brandl (gbrandl) Date: 2007-06-15 16:39 Message: Logged In: YES user_id=849994 Originator: NO Sounds reasonable. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1737864&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com