Skip to content

Commit 45b4a1f

Browse files
authored
Merge pull request #43 from mr-internetix/master
Fixed ( getting Name Error after creating executable file with SDK )
2 parents af54828 + 3d69400 commit 45b4a1f

File tree

1 file changed

+25
-15
lines changed

1 file changed

+25
-15
lines changed

imagekitio/constants/errors.py

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,53 +4,63 @@
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",
18+
"help": ""
19+
}
1720
INVALID_TRANSFORMATION_OPTIONS = {
1821
"message": "Invalid transformation parameter options",
19-
help: "",
22+
"help": "",
2023
}
2124
CACHE_PURGE_URL_MISSING = {
2225
"message": "Missing URL parameter for this request",
23-
help: "",
26+
"help": "",
2427
}
2528
CACHE_PURGE_STATUS_ID_MISSING = {
2629
"message": "Missing Request ID parameter for this request",
27-
help: "",
30+
"help": "",
2831
}
2932
FILE_ID_MISSING = {
3033
"message": "Missing File ID parameter for this request",
3134
"help": "",
3235
}
3336
UPDATE_DATA_MISSING = {
3437
"message": "Missing file update data for this request",
35-
help: "",
38+
"help": "",
3639
}
3740
UPDATE_DATA_TAGS_INVALID = {
3841
"message": "Invalid tags parameter for this request",
39-
help: "tags should be passed as null or an array like ['tag1', 'tag2']",
42+
"help": "tags should be passed as null or an array like ['tag1', 'tag2']",
4043
}
4144
UPDATE_DATA_COORDS_INVALID = (
4245
{
4346
"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'",
47+
"help": "custom_coordinates should be passed as null or a string like 'x,y,width,height'",
4548
},
4649
)
4750

4851
LIST_FILES_INPUT_MISSING = {
4952
"message": "Missing options for list files",
50-
help: "If you do not want to pass any parameter for listing, pass an empty object",
53+
"help": "If you do not want to pass any parameter for listing, pass an empty object",
54+
}
55+
MISSING_FILE_URL = {
56+
"message": "Missing file_url for purge_cache",
57+
"help": ""
58+
}
59+
MISSING_UPLOAD_DATA = {
60+
"message": "Missing data for upload",
61+
"help": ""
62+
5163
}
52-
MISSING_FILE_URL = {"message": "Missing file_url for purge_cache", help: ""}
53-
MISSING_UPLOAD_DATA = {"message": "Missing data for upload", help: ""}
5464
MISSING_UPLOAD_FILE_PARAMETER = {
5565
"message": "Missing file parameter for upload",
5666
"help": "",
@@ -62,16 +72,16 @@ class ERRORS(enum.Enum):
6272
INVALID_PHASH_VALUE = (
6373
{
6474
"message": "Invalid pHash value",
65-
help: "Both pHash strings must be valid hexadecimal numbers",
75+
"help": "Both pHash strings must be valid hexadecimal numbers",
6676
},
6777
)
6878
MISSING_PHASH_VALUE = {
6979
"message": "Missing pHash value",
70-
help: "Please pass two pHash values",
80+
"help": "Please pass two pHash values",
7181
}
7282
UNEQUAL_STRING_LENGTH = {
7383
"message": "Unequal pHash string length",
74-
help: "For distance calculation, the two pHash strings must have equal length",
84+
"help": "For distance calculation, the two pHash strings must have equal length",
7585
}
7686
VERSION_ID_MISSING = {
7787
"message": "Missing Version ID parameter for this request",

0 commit comments

Comments
 (0)