Skip to content

Commit

Permalink
Update general.py (#9252)
Browse files Browse the repository at this point in the history
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
  • Loading branch information
glenn-jocher committed Sep 1, 2022
1 parent 2d082a0 commit ea98199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def check_version(current='0.0.0', minimum='0.0.0', name='version ', pinned=Fals
result = (current == minimum) if pinned else (current >= minimum) # bool
s = f'WARNING: ⚠️ {name}{minimum} is required by YOLOv5, but {name}{current} is currently installed' # string
if hard:
assert result, s # assert min requirements met
assert result, emojis(s) # assert min requirements met
if verbose and not result:
LOGGER.warning(s)
return result
Expand Down

0 comments on commit ea98199

Please sign in to comment.