just check if file exists rather than trying to open

master
Jan Petykiewicz 2 years ago
parent ad1ec6acfb
commit 31e6e0ec60

@ -32,12 +32,11 @@ def pyfftw_load_wisdom(path):
except ImportError as e:
pass
try:
if path.exists():
with open(path, 'rb') as f:
wisdom = pickle.load(f)
pyfftw.import_wisdom(wisdom)
except FileNotFoundError as e:
pass
logger.info('Drawing grid...')
dx = 40

Loading…
Cancel
Save