Skip to content

Commit df1bee7

Browse files
committed
Merge branch '3.3.x'
2 parents 7d20d59 + 31c830c commit df1bee7

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

file_downloader.php

+9-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,15 @@ protected function create_client(string $host, int $port = 443, int $timeout = 6
7575
*/
7676
public function get(string $host, string $directory, string $filename, int $port = 443, int $timeout = 6): bool|string
7777
{
78-
// Initialize Guzzle client
79-
$client = $this->create_client($host, $port, $timeout);
78+
try
79+
{
80+
// Initialize Guzzle client
81+
$client = $this->create_client($host, $port, $timeout);
82+
}
83+
catch (\RuntimeException $exception)
84+
{
85+
throw new runtime_exception('HTTP_HANDLER_NOT_FOUND');
86+
}
8087

8188
// Set default values for error variables
8289
$this->error_number = 0;

0 commit comments

Comments
 (0)