From 1dec3f7bf63af77e650ee73aa6d5678d150b161a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20M=C3=BCller?= Date: Thu, 23 May 2024 09:54:07 +0200 Subject: [PATCH] fix: set recursion limit to one million --- CHANGELOG | 2 ++ impose/__main__.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 07ca6a3..f3492bd 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,5 @@ +0.4.10 + - fix: set recursion limit to one million 0.4.9 - setup: bump dependency versions 0.4.8 diff --git a/impose/__main__.py b/impose/__main__.py index a9cfd83..f15dcaf 100644 --- a/impose/__main__.py +++ b/impose/__main__.py @@ -13,6 +13,9 @@ def main(): print(__version__) sys.exit(0) + # Set recursion limit to one million + sys.setrecursionlimit(10 ** 6) + # Starts the Impose application and handles its life cycle. app = QtWidgets.QApplication(sys.argv) # set window icon