updated comment for chown

pull/45/head
sezanzeb 4 years ago
parent d9eb9efaf8
commit fba69d6cfd

@ -67,10 +67,11 @@ CONFIG_PATH = os.path.join('/home', USER, '.config/key-mapper')
def chown(path):
"""Set the owner of a path to the user."""
try:
shutil.chown(path, user=USER, group=USER)
except LookupError:
# the users group was missing in one case for whatever reason
# the users group was unknown in one case for whatever reason
shutil.chown(path, user=USER)

Loading…
Cancel
Save