diff --git a/copy-runtime-files.py b/copy-runtime-files.py index 8e31b1a29133132c32c314f4b2f1857374089047..a75dc7409f5bf9aa8e8da835bb2632ebe9857c93 100644 --- a/copy-runtime-files.py +++ b/copy-runtime-files.py @@ -176,7 +176,10 @@ def copy_ringtones(): for file in files: print(bcolors.OKBLUE + "Copying ringtone: " + file + " -> " + copy_to_path + bcolors.ENDC) - shutil.copy(ringtone_path + os.sep + file, copy_to_path) + try: + shutil.copy(ringtone_path + os.sep + file, copy_to_path) + except: + print(bcolors.FAIL + "Unable to copy file." + bcolors.ENDC) def compile_and_copy_web_resources():