Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bcrickboom committed Nov 15, 2024
1 parent 7c71b80 commit 0987c95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions orthanc_tools/orthanc_folder_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@ def stop(self):
worker_threads_count = int(os.environ.get("WORKER_THREADS_COUNT", str(args.worker_threads_count)))

o = None
if args.api_key is not None:
o=OrthancApiClient(args.url, headers={"api-key":args.api_key})
if api_key is not None:
o=OrthancApiClient(url, headers={"api-key": api_key})
else:
o=OrthancApiClient(args.url, user=args.user, pwd=args.password)
o=OrthancApiClient(url, user=user, pwd=password)

importer = OrthancFolderImporter(
api_client=o,
Expand Down

0 comments on commit 0987c95

Please sign in to comment.