Skip to content

Commit

Permalink
Once time I had such error.
Browse files Browse the repository at this point in the history
  File "\lazagne\config\changePrivileges.py", line 64, in ListSids
  File "\psutil\__init__.py", line 551, in as_dict
  File "\psutil\__init__.py", line 719, in username
  File "\psutil\_pswindows.py", line 578, in wrapper
  File "\psutil\_pswindows.py", line 743, in username
WindowsError: [Error 1722] The RPC server is unavailable
  • Loading branch information
m41nt41n3r authored May 14, 2018
1 parent 11344b3 commit ff12eb2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Windows/lazagne/config/change_privileges.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ def list_sids():
pinfo = proc.as_dict(attrs=['pid', 'username', 'name'])
except psutil.NoSuchProcess:
continue
except WindowsError as e:
if e.winerror == 1722: # WindowsError: [Error 1722] The RPC server is unavailable
continue

if pinfo['pid']<=4:
continue
Expand Down Expand Up @@ -210,4 +213,4 @@ def rev2self():
CloseHandle(global_ref)
except:
pass
global_ref = None
global_ref = None

0 comments on commit ff12eb2

Please sign in to comment.