Skip to content
Snippets Groups Projects
Commit b2ecbcc1 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Allow both ModuleNotFoundError and ImportError in _crazy_decorator

parent a5284d6e
No related branches found
No related tags found
No related merge requests found
......@@ -15,11 +15,15 @@ from pystencils.field import Field
try:
import torch
except ModuleNotFoundError:
torch = None
except ImportError:
torch = None
try:
import tensorflow as tf
except ModuleNotFoundError:
tf = None
except ImportError:
tf = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment