Skip to content

Commit 16e93d1

Browse files
committed
fixed (errors Exception after compliling exe)
1 parent 154806b commit 16e93d1

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

imagekitio/constants/errors.py

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,52 +4,54 @@
44
class ERRORS(enum.Enum):
55
MANDATORY_INITIALIZATION_MISSING = {
66
"message": "Missing public_key or private_key or url_endpoint during ImageKit initialization",
7-
help: "",
7+
"help": "",
88
}
99
INVALID_TRANSFORMATION_POSITION = {
1010
"message": "Invalid transformationPosition parameter",
11-
help: "",
11+
"help": "",
1212
}
1313
MANDATORY_SRC_OR_PATH = {
1414
"message": "Pass one of the mandatory parameter path or src"
1515
}
16-
INVALID_URL_GENERATION_PARAMETER = {"message": "Invalid url parameter", help: ""}
16+
INVALID_URL_GENERATION_PARAMETER = {
17+
"message": "Invalid url parameter", help: ""}
1718
INVALID_TRANSFORMATION_OPTIONS = {
1819
"message": "Invalid transformation parameter options",
19-
help: "",
20+
"help": "",
2021
}
2122
CACHE_PURGE_URL_MISSING = {
2223
"message": "Missing URL parameter for this request",
23-
help: "",
24+
"help": "",
2425
}
2526
CACHE_PURGE_STATUS_ID_MISSING = {
2627
"message": "Missing Request ID parameter for this request",
27-
help: "",
28+
"help": "",
2829
}
2930
FILE_ID_MISSING = {
3031
"message": "Missing File ID parameter for this request",
3132
"help": "",
3233
}
3334
UPDATE_DATA_MISSING = {
3435
"message": "Missing file update data for this request",
35-
help: "",
36+
"help": "",
3637
}
3738
UPDATE_DATA_TAGS_INVALID = {
3839
"message": "Invalid tags parameter for this request",
39-
help: "tags should be passed as null or an array like ['tag1', 'tag2']",
40+
"help": "tags should be passed as null or an array like ['tag1', 'tag2']",
4041
}
4142
UPDATE_DATA_COORDS_INVALID = (
4243
{
4344
"message": "Invalid custom_coordinates parameter for this request",
44-
help: "custom_coordinates should be passed as null or a string like 'x,y,width,height'",
45+
"help": "custom_coordinates should be passed as null or a string like 'x,y,width,height'",
4546
},
4647
)
4748

4849
LIST_FILES_INPUT_MISSING = {
4950
"message": "Missing options for list files",
50-
help: "If you do not want to pass any parameter for listing, pass an empty object",
51+
"help": "If you do not want to pass any parameter for listing, pass an empty object",
5152
}
52-
MISSING_FILE_URL = {"message": "Missing file_url for purge_cache", help: ""}
53+
MISSING_FILE_URL = {
54+
"message": "Missing file_url for purge_cache", help: ""}
5355
MISSING_UPLOAD_DATA = {"message": "Missing data for upload", help: ""}
5456
MISSING_UPLOAD_FILE_PARAMETER = {
5557
"message": "Missing file parameter for upload",
@@ -62,16 +64,16 @@ class ERRORS(enum.Enum):
6264
INVALID_PHASH_VALUE = (
6365
{
6466
"message": "Invalid pHash value",
65-
help: "Both pHash strings must be valid hexadecimal numbers",
67+
"help": "Both pHash strings must be valid hexadecimal numbers",
6668
},
6769
)
6870
MISSING_PHASH_VALUE = {
6971
"message": "Missing pHash value",
70-
help: "Please pass two pHash values",
72+
"help": "Please pass two pHash values",
7173
}
7274
UNEQUAL_STRING_LENGTH = {
7375
"message": "Unequal pHash string length",
74-
help: "For distance calculation, the two pHash strings must have equal length",
76+
"help": "For distance calculation, the two pHash strings must have equal length",
7577
}
7678
VERSION_ID_MISSING = {
7779
"message": "Missing Version ID parameter for this request",

0 commit comments

Comments
 (0)