kopia lustrzana https://github.com/inkstitch/inkstitch
fix seed param and error messages
rodzic
7d60b8e9d3
commit
b63f19b2d0
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue