vanillaCheckBox.py: ValueError: depythonifying 'long long', got 'NoneType'

3.0.3 (3089)
This script worked on G2. Now on G3 when I try to run:

I get this error:

Traceback (most recent call last):
  File "StringSmash-Mine.py", line 565
    StringSmash()
  File "StringSmash-Mine.py", line 133, in __init__
    checkBox = CheckBox((xPos[x], yPos, -10, 20), titles[x], sizeStyle='regular', value=values[x], callback=self.swithFlipTrio)
  File "vanillaCheckBox.py", line 83, in __init__
    self.set(value)
  File "vanillaCheckBox.py", line 91, in set
    self._nsObject.setState_(value)
ValueError: depythonifying 'long long', got 'NoneType'

Also got this one before:

Traceback (most recent call last):
  File "StringSmash-Mine.py", line 562
    StringSmash()
  File "StringSmash-Mine.py", line 110, in __init__
    radioGroup.set( Glyphs.defaults[ "com.belafrank.StringSmash.sortBy"] ) # load preference UI
  File "vanillaRadioGroup.py", line 351, in set
    self._nsObject.selectCellAtRow_column_(row, column)
ValueError: depythonifying 'long long', got 'NoneType'

Can you check what is in value (for the first error) and row. column ((For the second)?

For the first error, I’m not really sure? this was the code:

        for i in titles:
            checkBox = CheckBox((xPos[x], yPos, -10, 20), titles[x], sizeStyle='regular', value=values[x], callback=self.swithFlipTrio)
            temp = [0, 0, 0, 0]
            temp[x] = 1
            checkBox.var = temp
            setattr(self.w, 'checkBox_%s' %i, checkBox)
            x += 1

For the second:

radioGroup.set( Glyphs.defaults[ "com.belafrank.StringSmash.sortBy"] ) # load preference UI

value
None

Hey @GeorgSeifert any updates?

You might like to register a default. Or otherwise check if you get a result from the defaults call.