bdfr: raise recursion limit
This commit is contained in:
parent
8ed6a3f95b
commit
935642298b
2 changed files with 23 additions and 0 deletions
|
@ -12,6 +12,10 @@ pkgs.python3.pkgs.buildPythonApplication rec {
|
|||
hash = "sha256-kxCDtOywDSMxI+h8Ad2eziAGcZLbZHJFpDD/87BIbZY=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
../patches/bulk-downloader-for-reddit_recursion-limit.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = with pkgs.python3.pkgs; [
|
||||
setuptools
|
||||
wheel
|
||||
|
|
19
patches/bulk-downloader-for-reddit_recursion-limit.patch
Normal file
19
patches/bulk-downloader-for-reddit_recursion-limit.patch
Normal 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
|
Loading…
Reference in a new issue