eric6/WebBrowser/Sync/DirectorySyncHandler.py

changeset 7836
2f0d208b8137
parent 7785
9978016560ec
child 7900
72b88fb20261
child 7924
8a96736d465e
--- a/eric6/WebBrowser/Sync/DirectorySyncHandler.py	Sat Nov 21 19:31:16 2020 +0100
+++ b/eric6/WebBrowser/Sync/DirectorySyncHandler.py	Sun Nov 22 16:04:59 2020 +0100
@@ -94,7 +94,7 @@
                              self._remoteFiles[type_]), "rb"
             ) as f:
                 data = f.read()
-        except IOError as err:
+        except OSError as err:
             self.syncStatus.emit(
                 type_,
                 self.tr("Cannot read remote file.\n{0}").format(str(err)))
@@ -132,7 +132,7 @@
                 ) as f:
                     f.write(bytes(data))
                     f.close()
-            except IOError as err:
+            except OSError as err:
                 self.syncStatus.emit(
                     type_,
                     self.tr("Cannot write remote file.\n{0}").format(

eric ide

mercurial