Skip to content

Commit

Permalink
Merge pull request #253 from kvdotkirti/kvdotkirti-patch-1
Browse files Browse the repository at this point in the history
Partial: Update pytorch load fail from print to logging #251

Incomplete - logging.error will be the level of the root logger for successive logging calls.
  • Loading branch information
bnubald authored May 29, 2024
2 parents b03f03f + b29a636 commit 3206a74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions icenet/data/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
from torch.utils.data import Dataset
pytorch_available = True
except ModuleNotFoundError:
print("PyTorch not found - not required if not using PyTorch")
logger.error("PyTorch not found - not required if not using PyTorch")
except ImportError:
print("PyTorch import failed - not required if not using PyTorch")
logger.error("PyTorch import failed - not required if not using PyTorch")

"""
Expand Down

0 comments on commit 3206a74

Please sign in to comment.