Skip to content

Commit 1f8d354

Browse files
adomhamzaCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 9c79657 commit 1f8d354

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

bright_data_scrape/connector.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,9 @@ def update(configuration: dict, state: dict):
7171
urls = parse_scrape_urls(scrape_url_input)
7272

7373
if not urls:
74-
log.severe(
75-
f"No URLs provided in configuration; scrape_url input: {scrape_url_input}"
76-
)
77-
raise RuntimeError(
78-
f"No URLs provided in configuration; scrape_url input: {scrape_url_input}",
79-
)
80-
74+
message = f"No URLs provided in configuration; scrape_url input: {scrape_url_input}"
75+
log.error(message)
76+
raise RuntimeError(message)
8177
sync_scrape_urls(api_token, dataset_id, urls, state)
8278

8379

0 commit comments

Comments
 (0)