Use https for namespaces for currency rate from Romanian National Bank
Closes #14986 (grafted from a7bb08629b6172df9e2b249cf15c84ce875f2d85) --HG-- branch : 8.0
This commit is contained in:
@@ -44,12 +44,12 @@ class Cron(metaclass=PoolMeta):
|
||||
|
||||
origin, = tree.xpath(
|
||||
'//x:Body/x:OrigCurrency',
|
||||
namespaces={'x': 'http://www.bnr.ro/xsd'})
|
||||
namespaces={'x': 'https://www.bnr.ro/xsd'})
|
||||
assert origin.text == self.currency.code
|
||||
|
||||
cubes = tree.xpath(
|
||||
'//x:Body/x:Cube[@date="%s"]' % date.isoformat(),
|
||||
namespaces={'x': 'http://www.bnr.ro/xsd'})
|
||||
namespaces={'x': 'https://www.bnr.ro/xsd'})
|
||||
if cubes:
|
||||
cube, = cubes
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user