Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
adogecheems committed Aug 29, 2024
1 parent f236eaa commit ca77646
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions anisearch/search/AniSearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ def save_csv(self, filename: str) -> None:
"size": anime.size,
"magnet": anime.magnet
})

except Exception as e:
log.error(f"Failed to save CSV: {str(e)}")
raise
Expand Down
2 changes: 1 addition & 1 deletion anisearch/search/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def main() -> None:
parser.add_argument('-c', '--collected', action='store_true', help='是否启用季度全集搜索')

args = parser.parse_args()

search_params: Dict[str, Any] = {'keyword': args.keyword, 'collected': args.collected}

searcher = None
Expand All @@ -64,6 +63,7 @@ def main() -> None:
console.print(f"[bold green]其磁链为: [/bold green][bold yellow]{searcher.anime.magnet}[/bold yellow]")
else:
console.print("[bold yellow]已退出选择[/bold yellow]")

elif searcher is None:
console.print("[bold red]搜索失败,无法进行选择[/bold red]")
else:
Expand Down

0 comments on commit ca77646

Please sign in to comment.