Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

Commit c67caa7

Browse files
committed
refactor: remove unused imports and variables
1 parent ad6c18d commit c67caa7

File tree

7 files changed

+5
-7
lines changed

7 files changed

+5
-7
lines changed

logic/message.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
from core.constants import (
2525
OTP_PADDING_LIMIT,
2626
OTP_PADDING_LENGTH,
27-
ML_KEM_1024_NAME,
2827
ML_DSA_87_NAME,
2928
)
3029
from base64 import b64decode, b64encode

logic/pfs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
generate_kem_keys,
55
verify_signature,
66
create_signature,
7-
generate_sign_keys,
87
random_number_range
98
)
109
from core.trad_crypto import sha3_512

logic/smp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def smp_step_2_answer_provided(user_data, user_data_lock, contact_id, answer, ui
127127

128128

129129
try:
130-
response = http_request(f"{server_url}/smp/step_2", "POST", payload = {
130+
http_request(f"{server_url}/smp/step_2", "POST", payload = {
131131
"proof": our_message,
132132
"nonce": b64encode(our_nonce).decode(),
133133
"public_key": b64encode(public_key).decode(),

ui/connect_window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def get_proxy_info(self):
171171
proxy_info["password"] = password
172172

173173
if proxy_info:
174-
logger.debug(f"Proxy used: %s", json.dumps(proxy_info, indent=2))
174+
logger.info("Using proxy: %s", json.dumps(proxy_info, indent=2))
175175
return proxy_info
176176

177177
logger.debug("No proxy was set")

ui/contact_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def __init__(self):
4646
# this is a dry run, we don't actually populate the user data here
4747
load_account_data(None)
4848
call_the_callback = True
49-
except:
49+
except Exception:
5050
# otherwise we prompt for unlock password
5151
PasswordPrompt(self, self.ready_to_authenticate_callback)
5252

ui/password_prompt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def submit(self, event=None):
8484

8585
try:
8686
load_account_data(password)
87-
except:
87+
except Exception:
8888
self.set_status("Wrong password")
8989
return
9090

ui/smp_question_window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import tkinter as tk
22
from tkinter import messagebox
3-
from ui.utils import *
3+
# from ui.utils import *
44
from logic.smp import smp_step_2_answer_provided
55

66
class SMPQuestionWindow(tk.Toplevel):

0 commit comments

Comments
 (0)