Skip to content

Commit

Permalink
Merge pull request #1370 from nrathaus/improve_folder_name_when_schem…
Browse files Browse the repository at this point in the history
…e_is_empty

set_target before we parse the URL and then use self.url
  • Loading branch information
maurosoria authored May 11, 2024
2 parents efe0fe2 + 14c7bc3 commit 3fa7d84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/controller/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,9 @@ def setup_reports(self):
directory_path = self.setup_batch_reports()
filename = "BATCH." + self.get_output_extension()
else:
parsed = urlparse(options["urls"][0])
self.set_target(options["urls"][0])

parsed = urlparse(self.url)

if not parsed.netloc:
parsed = urlparse(f"//{options['urls'][0]}")
Expand Down

0 comments on commit 3fa7d84

Please sign in to comment.