Sleep for a minute in the hope that macOS crash log will become available

This commit is contained in:
Kovid Goyal 2024-01-18 20:00:29 +05:30
parent 6f74d1b0c1
commit c6c0d0ed60
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -10,6 +10,7 @@ import shutil
import subprocess
import sys
import tarfile
import time
from urllib.request import urlopen
BUNDLE_URL = 'https://download.calibre-ebook.com/ci/kitty/{}-64.tar.xz'
@ -21,6 +22,7 @@ SW = None
def do_print_crash_reports():
print('Printing available crash reports...')
if is_macos:
time.sleep(60)
for cdir in (os.path.expanduser('~/Library/Logs/DiagnosticReports'), '/Library/Logs/DiagnosticReports', '/cores'):
if not os.path.exists(cdir):
continue