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)
@cache
def random_seed(self) -> str:
seed = self.get_param('random_seed')
seed = self.get_param('random_seed', '')
if not seed:
seed = self.node.get_id() or ''
# 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 sys
import traceback
from collections import defaultdict
from copy import copy
from itertools import groupby, zip_longest
@ -511,9 +512,10 @@ class SettingsFrame(wx.Frame):
except SystemExit:
wx.CallAfter(self._show_warning)
raise
except Exception:
except Exception as e:
# Ignore errors. This can be things like incorrect paths for
# satins or division by zero caused by incorrect param values.
traceback.print_exception(e, file=sys.stderr)
pass
return patches