Skip to content

Commit 43a2ac4

Browse files
author
yanxinl4
committed
rm print
1 parent 89fccc3 commit 43a2ac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scicode/gen/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def extract_python_script(response: str):
142142
if '```' in response:
143143
python_script = response.split("```python")[1].split("```")[0] if '```python' in response else response.split('```')[1].split('```')[0]
144144
else:
145-
print(response)
145+
print("Fail to extract python code from specific format.")
146146
python_script = response
147147
python_script = re.sub(r'^\s*(import .*|from .*\s+import\s+.*)', '', python_script, flags=re.MULTILINE)
148148
return python_script

0 commit comments

Comments
 (0)