- Timestamp:
- Feb 25, 2016 7:12:28 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/python/server/policy.py
r59801 r59824 294 294 if logger.isEnabledFor(logging.DEBUG): 295 295 try: 296 raise exc_info[0](exc_info[1]).with_traceback(exc_info[2]) 296 if sys.version_info[0] <= 2: 297 exec('raise exc_info[0], exc_info[1], exc_info[2]') 298 else: 299 raise exc_info[0](exc_info[1]).with_traceback(exc_info[2]) 297 300 except: 298 301 logger.debug("'%s' raised COM Exception %s", … … 302 305 # As above, trick the logging module to handle Python 2.3 303 306 try: 304 raise exc_info[0](exc_info[1]).with_traceback(exc_info[2]) 307 if sys.version_info[0] <= 2: 308 exec('raise exc_info[0], exc_info[1], exc_info[2]') 309 else: 310 raise exc_info[0](exc_info[1]).with_traceback(exc_info[2]) 305 311 except: 306 312 logger.exception("Unhandled exception calling '%s'", func_name)
Note:
See TracChangeset
for help on using the changeset viewer.