Merge pull request #294 from YusufKaraaslanSpyke/fix/293-create-command-max-pages-attribute-error
fix: use getattr for max_pages in create command web routing
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