unauthorized_client will be created when needed

This commit is contained in:
Profitroll 2023-07-03 14:42:55 +02:00
parent a7e79eb254
commit 0c73c51936
Signed by: profitroll
GPG Key ID: FA35CAB49DACD3B2

View File

@ -27,13 +27,14 @@ parser.add_argument("--create-album", action="store_true")
args = parser.parse_args() args = parser.parse_args()
unauthorized_client = Client( if args.create_user or args.create_album:
base_url=sync.config_get("address", "posting", "api"), unauthorized_client = Client(
timeout=5.0, base_url=sync.config_get("address", "posting", "api"),
verify_ssl=True, timeout=5.0,
raise_on_unexpected_status=True, verify_ssl=True,
follow_redirects=False, raise_on_unexpected_status=True,
) follow_redirects=False,
)
async def cli_create_user() -> None: async def cli_create_user() -> None: