Add temporary fix for test_caret.py flakiness

Fixes #4311
Conflicts with #4087, we might be able to revert this for that PR.
This commit is contained in:
Florian Bruhin 2018-10-26 10:05:44 +02:00
parent 9019bf790b
commit 5ce1229ee5

View File

@ -917,7 +917,12 @@ class AbstractTab(QWidget):
# https://github.com/qutebrowser/qutebrowser/issues/3498
return
sess_manager = objreg.get('session-manager')
try:
sess_manager = objreg.get('session-manager')
except KeyError:
# https://github.com/qutebrowser/qutebrowser/issues/4311
return
sess_manager.save_autosave()
if ok and not self._has_ssl_errors: