qutebrowser/qutebrowser/utils
Florian Bruhin 378976db29 Make log.stub work when inspect.stack fails
I got this during shutdown once:

Traceback (most recent call last):
  File ".../qutebrowser/mainwindow/mainwindow.py", line 552, in closeEvent
  File ".../qutebrowser/mainwindow/mainwindow.py", line 538, in _do_close
  File ".../qutebrowser/mainwindow/tabbedbrowser.py", line 218, in shutdown
    self._remove_tab(tab)
  File ".../qutebrowser/mainwindow/tabbedbrowser.py", line 280, in _remove_tab
    tab.shutdown()
  File ".../qutebrowser/browser/webengine/webenginetab.py", line 536, in shutdown
    log.stub()
  File ".../qutebrowser/utils/log.py", line 151, in stub
    function = inspect.stack()[1][3]
  File "/usr/lib64/python3.5/inspect.py", line 1464, in stack
    return getouterframes(sys._getframe(1), context)
  File "/usr/lib64/python3.5/inspect.py", line 1441, in getouterframes
    frameinfo = (frame,) + getframeinfo(frame, context)
  File "/usr/lib64/python3.5/inspect.py", line 1414, in getframeinfo
    lines, lnum = findsource(frame)
  File "/usr/lib64/python3.5/inspect.py", line 804, in findsource
    if pat.match(lines[lnum]): break
IndexError: list index out of range
2016-10-06 21:04:53 +02:00
..
__init__.py Adjust copyright years. 2016-01-04 07:12:39 +01:00
debug.py Various code style improvements 2016-04-27 20:25:27 +02:00
docutils.py DocstringParser - support python with optimizations on 2016-08-08 10:01:50 +01:00
error.py Adjust copyright years. 2016-01-04 07:12:39 +01:00
javascript.py Revert "javascript.assemble: Support document module" 2016-08-18 15:58:46 +02:00
jinja.py Make qutescheme arg optional for resource_url 2016-09-15 16:42:07 +02:00
log.py Make log.stub work when inspect.stack fails 2016-10-06 21:04:53 +02:00
message.py Fix lint 2016-09-15 14:51:22 +02:00
objreg.py Add new-instance-open-target.window = first-opened 2016-08-16 12:24:38 +02:00
qtutils.py Remove --qt-* arguments 2016-09-09 17:55:16 +02:00
standarddir.py Fix using a relative path with --basedir 2016-08-02 14:08:28 +02:00
testfile Moving testfile used by test_utils into qutebrowser.utils 2015-04-04 19:15:23 -03:00
typing.py test/vulture reqs: Update vulture to 0.10 2016-07-14 23:17:39 +02:00
urlutils.py Check for spaces in URLs with explicit scheme 2016-09-15 22:29:21 +02:00
usertypes.py Initial implementation of new messages 2016-09-15 14:51:21 +02:00
utils.py Initial implementation of new messages 2016-09-15 14:51:21 +02:00
version.py Add a colon 2016-09-29 06:35:47 +02:00