summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2022-01-11 23:11:57 +0100
committerGitHub <noreply@github.com>2022-01-11 23:11:57 +0100
commit60664cc1c1b2465b935924dc36b255161135374b (patch)
tree8939cf5f1b53c8420d3b88666315b9697257c784
parentab0ed7ed18488ec611822b95e9d6c6aec55da1f1 (diff)
releases: suppress warnings (#1534)
-rw-r--r--inkstitch.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/inkstitch.py b/inkstitch.py
index 319b6691..65331cec 100644
--- a/inkstitch.py
+++ b/inkstitch.py
@@ -29,6 +29,11 @@ from lib import extensions
from lib.i18n import _
from lib.utils import restore_stderr, save_stderr, version
+# ignore warnings in releases
+if getattr(sys, 'frozen', None):
+ import warnings
+ warnings.filterwarnings('ignore')
+
logger = logging.getLogger('shapely.geos')
logger.setLevel(logging.DEBUG)
shapely_errors = StringIO()