Skip to content

Commit 8e44677

Browse files
committed
Convert StringProperty to string.
1 parent 7255e06 commit 8e44677

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/somd2/config/_config.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2158,6 +2158,11 @@ def _from_hex(hex):
21582158
from sire.legacy.Qt import QByteArray
21592159

21602160
try:
2161+
# Convert StringProperty to string.
2162+
try:
2163+
hex = hex.value()
2164+
except Exception:
2165+
pass
21612166
hex_byte_arrary = QByteArray.from_raw_data(hex, len(hex))
21622167
obj = load(QByteArray.from_hex(hex_byte_arrary))
21632168
except Exception as e:

0 commit comments

Comments
 (0)