Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jsvk committed Dec 28, 2022
1 parent 3121674 commit d5f7103
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lcu_driver/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Dict, Generator

from psutil import process_iter, Process
from psutil import process_iter, Process, STATUS_ZOMBIE


def parse_cmdline_args(cmdline_args) -> Dict[str, str]:
Expand All @@ -14,7 +14,7 @@ def parse_cmdline_args(cmdline_args) -> Dict[str, str]:

def _return_ux_process() -> Generator[Process, None, None]:
for process in process_iter():
if process.status() == psutil.STATUS_ZOMBIE:
if process.status() == STATUS_ZOMBIE:
continue

if process.name() in ['LeagueClientUx.exe', 'LeagueClientUx']:
Expand Down

0 comments on commit d5f7103

Please sign in to comment.