Skip to content

Commit

Permalink
catch all exceptions when importing cupy
Browse files Browse the repository at this point in the history
  • Loading branch information
TNTwise committed Dec 8, 2024
1 parent ac5d942 commit 1e28203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def checkForCUDA() -> bool:
import torch
import torchvision
import cupy
except ImportError as e:
except Exception as e:
return False
if cupy.cuda.get_cuda_path() == None:
return False
Expand Down

0 comments on commit 1e28203

Please sign in to comment.