Skip to content

Commit 7b8da18

Browse files
committed
Fix typo; convert to f-str
1 parent 37dd899 commit 7b8da18

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/bioinfo_project_status_update.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,26 +32,26 @@ def main(args):
3232
close_date = Project(lims=lims, id=project_id).close_date
3333
except HTTPError as e:
3434
if "404: Project not found" in str(e):
35-
log.error("Project " + project_id + " not found in LIMS")
35+
log.error(f"Project {project_id} not found in LIMS")
3636
continue
3737
if close_date is not None:
3838
try:
3939
doc = couch.get_document(
4040
db="bioinfo_analysis",
41-
document_id=row["id"],
41+
doc_id=row["id"],
4242
).get_result()
4343
except Exception as e:
44-
log.error(e + "in Project " + project_id + " Sample " + sample_id + " while accessing doc from statusdb")
44+
log.error(f"{e} in Project {project_id} Sample {sample_id} while accessing doc from statusdb")
4545
doc["project_closed"] = True
4646
try:
4747
couch.put_document(
4848
db="bioinfo_analysis",
4949
document=doc,
50-
document_id=row["id"],
50+
doc_id=row["id"],
5151
).get_result()
52-
log.info("Updated Project " + project_id + " Sample " + sample_id)
52+
log.info(f"Updated Project {project_id} Sample {sample_id}")
5353
except Exception as e:
54-
log.error(e + "in Project " + project_id + " Sample " + sample_id + " while saving to statusdb")
54+
log.error(f"{e} in Project {project_id} Sample {sample_id} while saving to statusdb")
5555

5656

5757
if __name__ == "__main__":

0 commit comments

Comments
 (0)