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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user