Skip to content

Commit

Permalink
deleted old code referencing non existing variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Buxdehuda authored Feb 7, 2024
1 parent 120caf5 commit 65ca325
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions certbotstratoapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,6 @@ def get_package_id(self) -> None:
self.package_id = urllib.parse.parse_qs(link_target.query)["cID"][0]
print(f'INFO: strato package id (cID): {self.package_id}')
return
else:
# Old page layout: still relevant?
customer_link = package_element.find_next('a', class_='customer-link')
if customer_link is not None and customer_link.has_attr('href'):
query_parameters = urllib.parse.parse_qs(customer_link['href'])
if 'cID' in query_parameters:
self.package_id = query_parameters['cID'][0]
print(f'INFO: strato package id (cID): {self.package_id}')
return

print(f'ERROR: Domain {self.second_level_domain_name} not '
'found in strato packages. Using fallback cID=1')
Expand Down

0 comments on commit 65ca325

Please sign in to comment.