Skip to content

Commit 7f55dde

Browse files
authored
Catch "Exception" to handle MalformedUriException (#216)
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
1 parent 9d187b6 commit 7f55dde

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
## [2.0.1 - 2024-01-25]
11+
12+
### Fixed
13+
14+
- MalformedUriException: Unable to parse URI exception - when the daemon has invalid URL. #216
15+
1016
## [2.0.0 - 2024-01-25]
1117

1218
AppAPI 2.0.

appinfo/info.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ to join us in shaping a more versatile, stable, and secure app landscape.
4242
*Your insights, suggestions, and contributions are invaluable to us.*
4343
4444
]]></description>
45-
<version>2.0.0</version>
45+
<version>2.0.1</version>
4646
<licence>agpl</licence>
4747
<author mail="andrey18106x@gmail.com" homepage="https://github.com/andrey18106">Andrey Borysenko</author>
4848
<author mail="bigcat88@icloud.com" homepage="https://github.com/bigcat88">Alexander Piskun</author>

lib/DeployActions/DockerActions.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace OCA\AppAPI\DeployActions;
66

7+
use Exception;
78
use GuzzleHttp\Client;
89
use GuzzleHttp\Exception\GuzzleException;
910

@@ -283,7 +284,7 @@ public function ping(string $dockerUrl): bool {
283284
if ($response->getStatusCode() === 200) {
284285
return true;
285286
}
286-
} catch (GuzzleException $e) {
287+
} catch (Exception $e) {
287288
$this->logger->error('Could not connect to Docker daemon', ['exception' => $e]);
288289
error_log($e->getMessage());
289290
}

0 commit comments

Comments
 (0)