From 2e273b214f74948f6159678ed84b9b8fbfa21658 Mon Sep 17 00:00:00 2001 From: YusufKaraaslanSpyke Date: Mon, 23 Feb 2026 08:58:06 +0300 Subject: [PATCH] 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 --- src/skill_seekers/cli/create_command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/skill_seekers/cli/create_command.py b/src/skill_seekers/cli/create_command.py index 2c9dd1a..717039d 100644 --- a/src/skill_seekers/cli/create_command.py +++ b/src/skill_seekers/cli/create_command.py @@ -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")