diff --git a/notebooks/pnCCD/Characterize_pnCCD_Gain.ipynb b/notebooks/pnCCD/Characterize_pnCCD_Gain.ipynb
index 4c6a9340026e64e924a6cca47705b28b283a6c5a..db2b8539c444cb93c0180b55ddaf17c4f42ac2ad 100644
--- a/notebooks/pnCCD/Characterize_pnCCD_Gain.ipynb
+++ b/notebooks/pnCCD/Characterize_pnCCD_Gain.ipynb
@@ -1209,12 +1209,11 @@
     "                                    condition, cal_db_interface,\n",
     "                                    snapshot_at=creation_time)[0]\n",
     "    if db_output:\n",
-    "        try:\n",
-    "            md = send_to_db(db_module, karabo_da, const, condition,\n",
-    "                            file_loc, report,\n",
-    "                            cal_db_interface,\n",
-    "                            creation_time=creation_time,\n",
-    "                            timeout=cal_db_timeout)\n",
+    "        md = send_to_db(db_module, karabo_id, const, condition,\n",
+    "                        file_loc, report,\n",
+    "                        cal_db_interface,\n",
+    "                        creation_time=creation_time,\n",
+    "                        timeout=cal_db_timeout)\n",
     "        \n",
     "    if local_output:\n",
     "        md = save_const_to_h5(db_module, karabo_id, \n",