diff -r 0b936ff1bbb9 -r a2bc06a54d9d src/eric7/Snapshot/SnapshotTimer.py --- a/src/eric7/Snapshot/SnapshotTimer.py Sun Nov 06 11:22:39 2022 +0100 +++ b/src/eric7/Snapshot/SnapshotTimer.py Mon Nov 07 17:19:58 2022 +0100 @@ -40,14 +40,9 @@ self.__toggle = True # text is taken from paintEvent with maximum number plus some margin - try: - fmWidth = self.fontMetrics().horizontalAdvance( - self.tr("Snapshot will be taken in %n seconds", "", 99) - ) - except AttributeError: - fmWidth = self.fontMetrics().width( - self.tr("Snapshot will be taken in %n seconds", "", 99) - ) + fmWidth = self.fontMetrics().horizontalAdvance( + self.tr("Snapshot will be taken in %n seconds", "", 99) + ) self.resize(fmWidth + 6, self.fontMetrics().height() + 4) self.__timer.timeout.connect(self.__bell)