--- a/src/eric7/MicroPython/EthernetDialogs/EthernetController.py Tue Aug 29 09:55:24 2023 +0200 +++ b/src/eric7/MicroPython/EthernetDialogs/EthernetController.py Tue Aug 29 16:50:17 2023 +0200 @@ -100,9 +100,7 @@ dlg = HostnameDialog(self.__mpy) hostname = ( - dlg.getHostname() - if dlg.exec() == QDialog.DialogCode.Accepted - else "" + dlg.getHostname() if dlg.exec() == QDialog.DialogCode.Accepted else "" ) self.__connectLan("dhcp", hostname)