Add debug msg

This commit is contained in:
tecnovert 2024-01-03 21:55:48 +02:00
parent 815e54ea69
commit d91b869759

View file

@ -61,6 +61,8 @@ def page_unlock(self, url_split, post_string):
self.end_headers() self.end_headers()
return bytes() return bytes()
except Exception as e: except Exception as e:
if swap_client.debug is True:
swap_client.log.error(str(e))
err_messages.append(str(e)) err_messages.append(str(e))
template = server.env.get_template('unlock.html') template = server.env.get_template('unlock.html')