Skip to content

Commit 1d36013

Browse files
committed
I was really sleepy...
1 parent 90b6837 commit 1d36013

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

sass.c

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -97,20 +97,6 @@ PySass_compile(PyObject *self, PyObject *args, PyObject *kwds)
9797
include_paths_v = PyString_AsString(include_paths);
9898
++expected_kwds;
9999
}
100-
else {
101-
PyErr_SetString(PyExc_TypeError,
102-
"include_paths must be a list or a colon-separated "
103-
"string");
104-
return NULL;
105-
}
106-
107-
if (image_path == NULL || image_path == Py_None) {
108-
image_path_v = ".";
109-
}
110-
else if (PyString_Check(image_path)) {
111-
image_path_v = PyString_AsString(image_path);
112-
++expected_kwds;
113-
}
114100
else if (PySequence_Check(include_paths)) {
115101
include_paths_num = PySequence_Size(include_paths);
116102
include_paths_size = 0;
@@ -146,6 +132,20 @@ PySass_compile(PyObject *self, PyObject *args, PyObject *kwds)
146132
}
147133
include_paths_v[include_paths_size] = '\0';
148134
}
135+
else {
136+
PyErr_SetString(PyExc_TypeError,
137+
"include_paths must be a list or a colon-separated "
138+
"string");
139+
return NULL;
140+
}
141+
142+
if (image_path == NULL || image_path == Py_None) {
143+
image_path_v = ".";
144+
}
145+
else if (PyString_Check(image_path)) {
146+
image_path_v = PyString_AsString(image_path);
147+
++expected_kwds;
148+
}
149149
else {
150150
PyErr_SetString(PyExc_TypeError, "image_path must be a string");
151151
return NULL;

0 commit comments

Comments
 (0)