Skip to content

Commit

Permalink
Attempt to fix import cycle under win32
Browse files Browse the repository at this point in the history
  • Loading branch information
melianmiko committed Mar 23, 2024
1 parent 3eb4594 commit b891eca
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/openfreebuds_applet/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import openfreebuds_backend
from openfreebuds.logger import create_log
from openfreebuds_applet import report_tool


def reverse_dict_props(obj):
Expand Down Expand Up @@ -59,6 +58,7 @@ def safe_run_wrapper(func, display_name, _):


def report_and_exit():
from openfreebuds_applet import report_tool
report_tool.create_and_show("crash")
# noinspection PyUnresolvedReferences,PyProtectedMember
os._exit(1)
Expand Down
2 changes: 1 addition & 1 deletion src/openfreebuds_backend/windows/bt_win32.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def run():
bt_device = await BluetoothDevice.from_host_name_async(host_name)
return bt_device.connection_status
except OSError:
log.info("Got OSError, looks like Bluetooth isn't available");
log.info("Got OSError, looks like Bluetooth isn't available")
return False
return asyncio.run(run())

Expand Down
1 change: 0 additions & 1 deletion src/openfreebuds_backend/windows/misc_win32.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
import pathlib
import re
import subprocess
import sys
import winreg
Expand Down

0 comments on commit b891eca

Please sign in to comment.