fix seed param and error messages

pull/1918/head
George Steel 2022-12-26 20:10:10 -05:00
rodzic 7d60b8e9d3
commit b63f19b2d0
2 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -261,7 +261,7 @@ class EmbroideryElement(object):
sort_index=100) sort_index=100)
@cache @cache
def random_seed(self) -> str: def random_seed(self) -> str:
seed = self.get_param('random_seed') seed = self.get_param('random_seed', '')
if not seed: if not seed:
seed = self.node.get_id() or '' seed = self.node.get_id() or ''
# TODO(#1696): When inplementing grouped clones, join this with the IDs of any shadow roots, # TODO(#1696): When inplementing grouped clones, join this with the IDs of any shadow roots,

Wyświetl plik

@ -7,6 +7,7 @@
import os import os
import sys import sys
import traceback
from collections import defaultdict from collections import defaultdict
from copy import copy from copy import copy
from itertools import groupby, zip_longest from itertools import groupby, zip_longest
@ -511,9 +512,10 @@ class SettingsFrame(wx.Frame):
except SystemExit: except SystemExit:
wx.CallAfter(self._show_warning) wx.CallAfter(self._show_warning)
raise raise
except Exception: except Exception as e:
# Ignore errors. This can be things like incorrect paths for # Ignore errors. This can be things like incorrect paths for
# satins or division by zero caused by incorrect param values. # satins or division by zero caused by incorrect param values.
traceback.print_exception(e, file=sys.stderr)
pass pass
return patches return patches