--- a/eric6/Preferences/ConfigurationPages/WebBrowserVirusTotalPage.py Tue Apr 13 17:49:05 2021 +0200 +++ b/eric6/Preferences/ConfigurationPages/WebBrowserVirusTotalPage.py Tue Apr 13 18:02:59 2021 +0200 @@ -74,10 +74,7 @@ self.testResultLabel.setHidden(False) self.testResultLabel.setText( self.tr("Checking validity of the service key...")) - if self.vtSecureCheckBox.isChecked(): - protocol = "https" - else: - protocol = "http" + protocol = "https" if self.vtSecureCheckBox.isChecked() else "http" self.__vt.checkServiceKeyValidity( self.vtServiceKeyEdit.text(), protocol)