Fix some regresions

This commit is contained in:
Matias De lellis
2021-09-20 21:26:25 -03:00
parent 2d0d3fc975
commit eaa68be517
5 changed files with 6 additions and 4 deletions

View File

@@ -43,6 +43,7 @@ use OCA\QuickNotes\Db\TagMapper;
use OCA\QuickNotes\Service\FileService;
use OCA\QuickNotes\Service\SettingsService;
use OCP\AppFramework\Db\DoesNotExistException;
class NoteService {
@@ -408,7 +409,7 @@ class NoteService {
// Get Note and Color
try {
$note = $this->notemapper->find($id, $userId);
} catch(Exception $e) {
} catch(DoesNotExistException $e) {
return;
}
$oldcolorid = $note->getColorId();