From 9a8773c8d08f981baa10b85b78f0e3cf41170fbc Mon Sep 17 00:00:00 2001 From: Seif Ashraf Date: Tue, 30 Jul 2024 14:19:47 +0300 Subject: [PATCH 1/2] Update exception.py Added some exceptions --- gazu/exception.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gazu/exception.py b/gazu/exception.py index 4f58cb6b..778ae474 100644 --- a/gazu/exception.py +++ b/gazu/exception.py @@ -97,3 +97,13 @@ class TaskMustBeADictException(Exception): """ Error raised when a task should be a dict. """ + +class FileDoesntExist(Exception): + """ + Error raised when a file should be existed when we submit a preview. + """ + +class ProjectDoesntExist(Exception): + """ + Error raised when a project isn't available. + """ From 0a3288a4450a1148d02776ec9d48914112d2de23 Mon Sep 17 00:00:00 2001 From: Seif Ashraf Date: Tue, 30 Jul 2024 14:20:48 +0300 Subject: [PATCH 2/2] Update exception.py --- gazu/exception.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gazu/exception.py b/gazu/exception.py index 778ae474..77146753 100644 --- a/gazu/exception.py +++ b/gazu/exception.py @@ -98,12 +98,14 @@ class TaskMustBeADictException(Exception): Error raised when a task should be a dict. """ -class FileDoesntExist(Exception): + +class FileDoesntExistException(Exception): """ Error raised when a file should be existed when we submit a preview. """ -class ProjectDoesntExist(Exception): + +class ProjectDoesntExistException(Exception): """ Error raised when a project isn't available. """