Skip to content

permission error #9

@krishna0306

Description

@krishna0306

giving this error:

Traceback (most recent call last):
File "C:\Git\main.py", line 43, in
block_websites(9, 21)
File "C:\Git\main.py", line 31, in block_websites
with open(default_hoster, "r+") as hostfile:
PermissionError: [Errno 13] Permission denied: 'C:\Windows\System32\drivers\etc\hosts'

despite running form admin mode in cmd

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions