1
0
Fork 0

bdfr: raise recursion limit

This commit is contained in:
Daniel Kempkens 2023-11-15 14:21:27 +01:00
parent 8ed6a3f95b
commit 935642298b
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
2 changed files with 23 additions and 0 deletions

View file

@ -12,6 +12,10 @@ pkgs.python3.pkgs.buildPythonApplication rec {
hash = "sha256-kxCDtOywDSMxI+h8Ad2eziAGcZLbZHJFpDD/87BIbZY="; hash = "sha256-kxCDtOywDSMxI+h8Ad2eziAGcZLbZHJFpDD/87BIbZY=";
}; };
patches = [
../patches/bulk-downloader-for-reddit_recursion-limit.patch
];
nativeBuildInputs = with pkgs.python3.pkgs; [ nativeBuildInputs = with pkgs.python3.pkgs; [
setuptools setuptools
wheel wheel

View file

@ -0,0 +1,19 @@
Subject: Raise recursion limit
---
bdfr/__main__.py | 2 ++
1 file changed, 2 insertions(+)
--- a/bdfr/__main__.py
+++ b/bdfr/__main__.py
@@ -15,6 +15,8 @@ from bdfr.downloader import RedditDownloader
logger = logging.getLogger()
+sys.setrecursionlimit(100_000)
+
_common_options = [
click.argument("directory", type=str),
click.option("--authenticate", is_flag=True, default=None),
--
2.42.0