demos being moved would cause file not found error leaving behind zip files on disk

This commit is contained in:
jenz 2022-04-23 12:05:22 +02:00
parent cabe87d92a
commit 3fc37089bd

View File

@ -28,7 +28,7 @@ class local_dir_remote:
if '/maps' in str(files): if '/maps' in str(files):
continue continue
file_list.append(files) file_list.append(files)
except PermissionError: except Exception:
continue continue
return file_list return file_list
@ -39,7 +39,7 @@ class local_dir_remote:
for files in source_files: for files in source_files:
try: try:
myzip.write(files) myzip.write(files)
except PermissionError: except Exception:
continue continue
return str(Path.cwd()) + '/' + zipname return str(Path.cwd()) + '/' + zipname