--- a/eric6/UI/UserInterface.py Mon Apr 12 19:05:23 2021 +0200 +++ b/eric6/UI/UserInterface.py Mon Apr 12 19:21:40 2021 +0200 @@ -7056,15 +7056,13 @@ "Updates/LastCheckDate", QDate(1970, 1, 1)) if lastCheck.isValid(): now = QDate.currentDate() - if period == 2 and lastCheck.day() == now.day(): - # daily - return - elif period == 3 and lastCheck.daysTo(now) < 7: - # weekly - return - elif period == 4 and (lastCheck.daysTo(now) < - lastCheck.daysInMonth()): - # monthly + if ( + (period == 2 and lastCheck.day() == now.day()) or + (period == 3 and lastCheck.daysTo(now) < 7) or + (period == 4 and (lastCheck.daysTo(now) < + lastCheck.daysInMonth())) + ): + # daily, weekly, monthly return self.__inVersionCheck = True