diff -r 2bbec88047dd -r 2161475d9639 eric6/WebBrowser/SafeBrowsing/SafeBrowsingDialog.py --- a/eric6/WebBrowser/SafeBrowsing/SafeBrowsingDialog.py Wed Apr 21 19:40:50 2021 +0200 +++ b/eric6/WebBrowser/SafeBrowsing/SafeBrowsingDialog.py Thu Apr 22 18:02:47 2021 +0200 @@ -334,16 +334,14 @@ """ nextUpdateDateTime = Preferences.getWebBrowser( "SafeBrowsingUpdateDateTime") - if ( - not nextUpdateDateTime.isValid() or - nextUpdateDateTime <= QDateTime.currentDateTime() - ): - message = self.tr("The next automatic threat list update will be" - " done now.") - else: - message = self.tr("<p>The next automatic threat list update will" - " be done at <b>{0}</b>.</p>").format( + message = ( + self.tr("The next automatic threat list update will be done now.") + if (not nextUpdateDateTime.isValid() or + nextUpdateDateTime <= QDateTime.currentDateTime()) else + self.tr("<p>The next automatic threat list update will be done at" + " <b>{0}</b>.</p>").format( nextUpdateDateTime.toString("yyyy-MM-dd, HH:mm:ss")) + ) E5MessageBox.information( self,