Skip to content

Commit

Permalink
Catch "Exception" to handle MalformedUriException (#216)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Piskun <[email protected]>
  • Loading branch information
bigcat88 authored Jan 25, 2024
1 parent 9d187b6 commit 7f55dde
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [2.0.1 - 2024-01-25]

### Fixed

- MalformedUriException: Unable to parse URI exception - when the daemon has invalid URL. #216

## [2.0.0 - 2024-01-25]

AppAPI 2.0.
Expand Down
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ to join us in shaping a more versatile, stable, and secure app landscape.
*Your insights, suggestions, and contributions are invaluable to us.*
]]></description>
<version>2.0.0</version>
<version>2.0.1</version>
<licence>agpl</licence>
<author mail="[email protected]" homepage="https://github.com/andrey18106">Andrey Borysenko</author>
<author mail="[email protected]" homepage="https://github.com/bigcat88">Alexander Piskun</author>
Expand Down
3 changes: 2 additions & 1 deletion lib/DeployActions/DockerActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace OCA\AppAPI\DeployActions;

use Exception;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\GuzzleException;

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

0 comments on commit 7f55dde

Please sign in to comment.