From 6c337e3c1767a9ecac0759a34d92bc825d002d6e Mon Sep 17 00:00:00 2001 From: Yordan Suarez Date: Tue, 6 Dec 2022 11:57:03 -0500 Subject: [PATCH] added custom exception for no territory --- custom_components/fpl/exceptions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/custom_components/fpl/exceptions.py b/custom_components/fpl/exceptions.py index 89c8bc5..79b87cf 100644 --- a/custom_components/fpl/exceptions.py +++ b/custom_components/fpl/exceptions.py @@ -11,3 +11,7 @@ class ForceChangePasswordException(WarrantException): class TokenVerificationException(WarrantException): """Raised when token verification fails.""" + + +class NoTerrytoryAvailableException(Exception): + """Thrown when not possible to determine user territory"""