Skip to content

Commit

Permalink
Merge pull request #1338 from mraspaud/fix-wavelength-class-defaults-3.6
Browse files Browse the repository at this point in the history
Fix exception to catch when new namedtuple syntax is used
  • Loading branch information
mraspaud committed Sep 8, 2020
2 parents 477136b + 7b77fcf commit 7f11a0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion satpy/dataset/dataid.py
Expand Up @@ -75,7 +75,7 @@ def __repr__(self):

try:
wlklass = namedtuple("WavelengthRange", "min central max unit", defaults=('µm',))
except NameError: # python 3.6
except TypeError: # python 3.6
wlklass = namedtuple("WavelengthRange", "min central max unit")
wlklass.__new__.__defaults__ = ('µm',)

Expand Down

0 comments on commit 7f11a0e

Please sign in to comment.