Niv Sardi commited on
Commit
187e8b8
·
1 Parent(s): e919aa3

web: bugfix fn not defined

Browse files
Files changed (1) hide show
  1. python/web.py +2 -1
python/web.py CHANGED
@@ -18,9 +18,10 @@ def get_page(e: Entity):
18
  def get_cert(e: Entity):
19
  ssl_url = e.url.split("/")[2]
20
  mkdir.make_dirs([defaults.CERTS_PATH])
 
 
21
  try:
22
  cert = ssl.get_server_certificate((ssl_url, 443), ca_certs=None)
23
- fn = f"{defaults.CERTS_PATH}/{e.bco}.cert"
24
  with open(fn, 'w') as f:
25
  f.write(cert)
26
  except Exception as err:
 
18
  def get_cert(e: Entity):
19
  ssl_url = e.url.split("/")[2]
20
  mkdir.make_dirs([defaults.CERTS_PATH])
21
+ fn = f"{defaults.CERTS_PATH}/{e.bco}.cert"
22
+
23
  try:
24
  cert = ssl.get_server_certificate((ssl_url, 443), ca_certs=None)
 
25
  with open(fn, 'w') as f:
26
  f.write(cert)
27
  except Exception as err: