Skip to content

Commit

Permalink
Format with black
Browse files Browse the repository at this point in the history
  • Loading branch information
lawtancool committed Nov 25, 2023
1 parent 0059670 commit 6119118
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pyControl4/error_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class BadToken(Unauthorized):


class InvalidCategory(C4Exception):
"""Raised when an invalid category is provided when calling
"""Raised when an invalid category is provided when calling
`pyControl4.director.C4Director.getAllItemsByCategory`."""


Expand All @@ -39,10 +39,7 @@ class InvalidCategory(C4Exception):
"Permission denied Bad credentials": BadCredentials,
}

DIRECTOR_ERRORS = {
"Unauthorized": Unauthorized,
"Invalid category": InvalidCategory
}
DIRECTOR_ERRORS = {"Unauthorized": Unauthorized, "Invalid category": InvalidCategory}

DIRECTOR_ERROR_DETAILS = {"Expired or invalid token": BadToken}

Expand Down

0 comments on commit 6119118

Please sign in to comment.