Skip to content

Commit

Permalink
Avoid mutating args.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 25, 2024
1 parent 89ea916 commit bc238ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jaraco/mongodb/oplog.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ def _load_dest(host):

def main():
args = build_parser().parse_args()
args.start_ts = args.start_ts or args.resume_file.read()
log_format = '%(asctime)s - %(levelname)s - %(message)s'
jaraco.logging.setup(args, format=log_format)

Expand All @@ -357,7 +356,7 @@ def main():

logging.info("connected")

start = args.start_ts
start = args.start_ts or args.resume_file.read()
if not start:
logging.error("Resume file or window required")
raise SystemExit(2)
Expand Down

0 comments on commit bc238ee

Please sign in to comment.