Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-rodriguez committed Jul 10, 2024
1 parent 0593d86 commit 6fa29b0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions simple/utils/spectra.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import sqlalchemy.exc
from astrodb_utils import (
AstroDBError,
find_publication,
find_source_in_db,
internet_connection,
)
Expand Down Expand Up @@ -152,8 +151,8 @@ def ingest_spectrum(
mode=mode,
)
if len(matches) > 0:
msg = f"Skipping suspected duplicate measurement: {source}\n"
msg2 = f"{matches}" f"{instrument, mode, obs_date, reference, spectrum} \n"
msg = f"Skipping suspected duplicate measurement: {source}"
msg2 = f"{matches} {instrument, mode, obs_date, reference, spectrum}"
logger.warning(msg)
logger.debug(msg2)
flags["message"] = msg
Expand Down

0 comments on commit 6fa29b0

Please sign in to comment.