Skip to content

Commit

Permalink
catch all exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst committed Mar 13, 2023
1 parent d919592 commit fdc633c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 2.1.2

Compatible with Kimai 2.0

- Fixed: catch any Exception during CSV import

## 2.1.1

Compatible with Kimai 2.0
Expand Down
2 changes: 1 addition & 1 deletion Importer/ImporterService.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ private function importCsv(ImportModel $model, string $import): ImportData
return $importer->import($model, $rows);
}
}
} catch (LeagueException $ex) {
} catch (\Exception $ex) {
throw new ImportException($ex->getMessage());
}

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "A Kimai plugin to import data from CSV files via Web UI",
"homepage": "https://www.kimai.org/store/keleo-importer-bundle.html",
"type": "kimai-plugin",
"version": "2.1.1",
"version": "2.1.2",
"keywords": [
"kimai",
"kimai-plugin"
Expand Down

0 comments on commit fdc633c

Please sign in to comment.