We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7255e06 commit 8e44677Copy full SHA for 8e44677
1 file changed
src/somd2/config/_config.py
@@ -2158,6 +2158,11 @@ def _from_hex(hex):
2158
from sire.legacy.Qt import QByteArray
2159
2160
try:
2161
+ # Convert StringProperty to string.
2162
+ try:
2163
+ hex = hex.value()
2164
+ except Exception:
2165
+ pass
2166
hex_byte_arrary = QByteArray.from_raw_data(hex, len(hex))
2167
obj = load(QByteArray.from_hex(hex_byte_arrary))
2168
except Exception as e:
0 commit comments