Skip to content

Commit

Permalink
Logging syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mobiusklein committed May 20, 2024
1 parent a061dfb commit ddd5d58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ms_deisotope/tools/deisotoper/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def _make_scan_batch(self) -> Tuple[
except StopIteration:
break
except Exception as e:
self.log_handler("An error occurred in _make_scan_batch", e)
self.log_handler("An error occurred in _make_scan_batch: %r" % e)
break
if not self.ignore_tandem_scans:
batch.append((scan_id, product_scan_ids, True))
Expand Down Expand Up @@ -254,7 +254,7 @@ def run(self):
except StopIteration:
break
except Exception as e:
self.log_handler("An error occurred while fetching scans", e)
self.log_handler("An error occurred while fetching scans: %r" % e)
break

if self.no_more_event is not None:
Expand Down

0 comments on commit ddd5d58

Please sign in to comment.