You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f"Cannot use file-based copy, because the foreign data format {foreign_mag_view.info.data_format} does not match the layer's data format {self.data_format}."
1092
+
)
1092
1093
1093
1094
mag_path=self.path/str(foreign_mag_view.mag)
1094
-
assertexists_okornotmag_path.exists(), (
1095
-
f"Cannot copy {foreign_mag_view.path} to {mag_path} because it already exists and `exist_ok` is set to False."
1096
-
)
1095
+
ifnotexists_okandmag_path.exists():
1096
+
raiseFileExistsError(
1097
+
f"Cannot copy {foreign_mag_view.path} to {mag_path} because it already exists."
0 commit comments