Skip to content

Commit

Permalink
[#367] Fixed an unnecessary warning in `DisplayCAL.display_cal.MainFr…
Browse files Browse the repository at this point in the history
…ame.profile_finish()`.
  • Loading branch information
eoyilmaz committed Jun 5, 2024
1 parent 9a4973d commit 96a487f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions DisplayCAL/display_cal.py
Original file line number Diff line number Diff line change
Expand Up @@ -11202,9 +11202,8 @@ def profile_finish(
)
for key, name, _volume in gamuts:
try:
gamut_coverage = float(
profile.tags.meta.getvalue(f"GAMUT_coverage({key})")
)
gamut_coverage = profile.tags.meta.getvalue(f"GAMUT_coverage({key})")
gamut_coverage = float(gamut_coverage) if gamut_coverage is not None else gamut_coverage
except (TypeError, ValueError):
traceback.print_exc()
gamut_coverage = None
Expand Down

0 comments on commit 96a487f

Please sign in to comment.