diff --git a/file_mover/remote_local_dir.py b/file_mover/remote_local_dir.py index 9ff41162..fbeb34bd 100755 --- a/file_mover/remote_local_dir.py +++ b/file_mover/remote_local_dir.py @@ -28,7 +28,7 @@ class local_dir_remote: if '/maps' in str(files): continue file_list.append(files) - except PermissionError: + except Exception: continue return file_list @@ -39,7 +39,7 @@ class local_dir_remote: for files in source_files: try: myzip.write(files) - except PermissionError: + except Exception: continue return str(Path.cwd()) + '/' + zipname