Skip to content

Commit 2d8b6dc

Browse files
committed
fixing bare exceptions
1 parent 249671c commit 2d8b6dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rag_and_distilled_model/Apollo11_rag&distilled.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@
760760
" print(\n",
761761
" f\"Per query: {emissions_inference / len(prompts):.6f} kg CO2 | {energy_inference_val / len(prompts):.6f} kWh\"\n",
762762
" )\n",
763-
"except:\n",
763+
"except Exception:\n",
764764
" print(f\"Model Loading: {emissions_loading:.6f} kg CO2\")\n",
765765
" print(f\"Embeddings: {emissions_embeddings:.6f} kg CO2\")\n",
766766
" print(f\"Inference: {emissions_inference:.6f} kg CO2\")\n",

0 commit comments

Comments
 (0)