Merge pull request #98 from Pennyw0rth/neff-bugfixes

Fix import error on windows
main
Marshall Hallenbeck 2023-10-31 11:18:01 -04:00 committed by GitHub
commit 6e589018c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ from rich.progress import Progress
import platform import platform
# Increase file_limit to prevent error "Too many open files" # Increase file_limit to prevent error "Too many open files"
if platform != "Windows": if platform.system() != "Windows":
import resource import resource
file_limit = list(resource.getrlimit(resource.RLIMIT_NOFILE)) file_limit = list(resource.getrlimit(resource.RLIMIT_NOFILE))