diff --git a/qutebrowser/mainwindow/statusbar/progress.py b/qutebrowser/mainwindow/statusbar/progress.py index 4e21fb91e..6d52455d7 100644 --- a/qutebrowser/mainwindow/statusbar/progress.py +++ b/qutebrowser/mainwindow/statusbar/progress.py @@ -66,10 +66,10 @@ class Progress(QProgressBar): @pyqtSlot(int) def on_tab_changed(self, tab): """Set the correct value when the current tab changed.""" - if self is None: + if self is None: # pragma: no branch # This should never happen, but for some weird reason it does # sometimes. - return + return # pragma: no cover self.setValue(tab.progress) if tab.load_status == webview.LoadStatus.loading: self.show() diff --git a/scripts/dev/check_coverage.py b/scripts/dev/check_coverage.py index a04cee533..f6e157be9 100644 --- a/scripts/dev/check_coverage.py +++ b/scripts/dev/check_coverage.py @@ -35,8 +35,10 @@ PERFECT_FILES = [ 'qutebrowser/commands/cmdexc.py', 'qutebrowser/misc/readline.py', 'qutebrowser/browser/tabhistory.py', + 'qutebrowser/mainwindow/statusbar/keystring.py', 'qutebrowser/mainwindow/statusbar/percentage.py', + 'qutebrowser/mainwindow/statusbar/progress.py', 'qutebrowser/config/configtypes.py', 'qutebrowser/config/configdata.py',