eric7/WebBrowser/SpellCheck/ManageDictionariesDialog.py

branch
eric7
changeset 8663
a925267d1545
parent 8586
6a315398a554
child 8881
54e42bc2437a
diff -r 49781769bc43 -r a925267d1545 eric7/WebBrowser/SpellCheck/ManageDictionariesDialog.py
--- a/eric7/WebBrowser/SpellCheck/ManageDictionariesDialog.py	Sun Oct 03 15:59:11 2021 +0200
+++ b/eric7/WebBrowser/SpellCheck/ManageDictionariesDialog.py	Sun Oct 03 17:25:49 2021 +0200
@@ -75,11 +75,8 @@
         ):
             self.__reachabilityChanged(
                 QNetworkInformation.instance().reachability())
-            # TODO: remove this 'contextlib' with official relelase
-            import contextlib
-            with contextlib.suppress(Exception):
-                QNetworkInformation.instance().reachabilityChanged.connect(
-                    self.__reachabilityChanged)
+            QNetworkInformation.instance().reachabilityChanged.connect(
+                self.__reachabilityChanged)
         else:
             # assume to be 'always online' if no backend could be loaded or
             # dynamic online check is switched of

eric ide

mercurial