Skip to content

Commit

Permalink
fix: only log bluestacks_config_path if file is found
Browse files Browse the repository at this point in the history
  • Loading branch information
brunocordioli072 committed Mar 19, 2024
1 parent 230d310 commit 76e4e15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/epic7_bot/core/DeviceManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ def connect_devices_to_adb(self):
for dl in drvArr:
try:
if (os.path.isdir(dl) != 0):
logging.info(f"Checking Bluestacks Config on: {dl}\\ProgramData\\BlueStacks_nxt\\bluestacks.conf")
bluestacks_config_path = f"{dl}\\ProgramData\\BlueStacks_nxt\\bluestacks.conf"
if os.path.isfile(bluestacks_config_path):
logging.info(f"Checking Bluestacks Config on: {dl}\\ProgramData\\BlueStacks_nxt\\bluestacks.conf")
with open(bluestacks_config_path, "r") as f:
config = f.readlines()
except Exception as e:
Expand Down

0 comments on commit 76e4e15

Please sign in to comment.