Spaces:
Sleeping
Sleeping
Update src/services/cv_service.py
Browse files
src/services/cv_service.py
CHANGED
|
@@ -57,7 +57,7 @@ class CVParsingService:
|
|
| 57 |
return cv_data
|
| 58 |
|
| 59 |
def _save_profile(self, candidat_data: Dict[str, Any], user_id: str = None):
|
| 60 |
-
if
|
| 61 |
return
|
| 62 |
|
| 63 |
try:
|
|
|
|
| 57 |
return cv_data
|
| 58 |
|
| 59 |
def _save_profile(self, candidat_data: Dict[str, Any], user_id: str = None):
|
| 60 |
+
if self.candidate_collection is None or not isinstance(candidat_data, dict):
|
| 61 |
return
|
| 62 |
|
| 63 |
try:
|