fix: use getattr for max_pages in create command web routing (#293)

The create command crashed with 'Namespace' object has no attribute
'max_pages' because it accessed args.max_pages directly instead of
using getattr() like all other source-specific attributes in the
same method.

Closes #293

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
YusufKaraaslanSpyke
2026-02-23 08:58:06 +03:00
parent 1456e8be6b
commit 2e273b214f

View File

@@ -152,7 +152,7 @@ class CreateCommand:
self._add_common_args(argv)
# Add web-specific arguments
if self.args.max_pages:
if getattr(self.args, "max_pages", None):
argv.extend(["--max-pages", str(self.args.max_pages)])
if getattr(self.args, "skip_scrape", False):
argv.append("--skip-scrape")