ui: Fix missing post_string on page_error

2024-05-20_merge
tecnovert 2 years ago
parent 58a2707526
commit 5738cdd825
No known key found for this signature in database
GPG Key ID: 8ED6D8750C4E3F93
  1. 4
      basicswap/http_server.py

@ -132,7 +132,7 @@ class HttpHandler(BaseHTTPRequestHandler):
**args_dict,
), 'UTF-8')
def page_info(self, info_str, post_string):
def page_info(self, info_str, post_string=None):
template = env.get_template('info.html')
swap_client = self.server.swap_client
summary = swap_client.getSummary()
@ -142,7 +142,7 @@ class HttpHandler(BaseHTTPRequestHandler):
'summary': summary,
})
def page_error(self, error_str, post_string):
def page_error(self, error_str, post_string=None):
template = env.get_template('error.html')
swap_client = self.server.swap_client
summary = swap_client.getSummary()

Loading…
Cancel
Save