You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: minds/minds.py
+4-12
Original file line number
Diff line number
Diff line change
@@ -27,9 +27,7 @@ def __init__(
27
27
self.project='mindsdb'
28
28
29
29
ifnotutils.validate_mind_name(name):
30
-
raiseexc.MindNameInvalid("""
31
-
Mind name should start with a letter and contain only letters, numbers or underscore, with a maximum of 32 characters.
32
-
Spaces are not allowed.""")
30
+
raiseexc.MindNameInvalid("Mind name should start with a letter and contain only letters, numbers or underscore, with a maximum of 32 characters. Spaces are not allowed.")
33
31
34
32
self.name=name
35
33
self.model_name=model_name
@@ -81,9 +79,7 @@ def update(
81
79
data= {}
82
80
83
81
ifnotutils.validate_mind_name(name):
84
-
raiseexc.MindNameInvalid("""
85
-
Mind name should start with a letter and contain only letters, numbers or underscore, with a maximum of 32 characters.
86
-
Spaces are not allowed.""")
82
+
raiseexc.MindNameInvalid("Mind name should start with a letter and contain only letters, numbers or underscore, with a maximum of 32 characters. Spaces are not allowed.")
Mind name should start with a letter and contain only letters, numbers or underscore, with a maximum of 32 characters.
232
-
Spaces are not allowed.""")
226
+
raiseexc.MindNameInvalid("Mind name should start with a letter and contain only letters, numbers or underscore, with a maximum of 32 characters. Spaces are not allowed.")
Mind name should start with a letter and contain only letters, numbers or underscore, with a maximum of 32 characters.
282
-
Spaces are not allowed.""")
274
+
raiseexc.MindNameInvalid("Mind name should start with a letter and contain only letters, numbers or underscore, with a maximum of 32 characters. Spaces are not allowed.")
0 commit comments