From fa55b003803cdd79afa191d7e4309dec182bf2b6 Mon Sep 17 00:00:00 2001 From: Laurent Monin Date: Sat, 3 Jun 2023 14:09:16 +0200 Subject: [PATCH] Set WSRequest.qurl after parent class init and get it from url() --- picard/webservice/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/picard/webservice/__init__.py b/picard/webservice/__init__.py index 7c9194954..3060df245 100644 --- a/picard/webservice/__init__.py +++ b/picard/webservice/__init__.py @@ -145,11 +145,11 @@ class WSRequest(QNetworkRequest): if self.handler is None: raise AssertionError('handler undefined') - self.qurl = qurl - if self.qurl is None: + if qurl is None: raise AssertionError('URL undefined') - super().__init__(self.qurl) + super().__init__(qurl) + self.qurl = self.url() # optional parameters self.parse_response_type = parse_response_type