1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-06 16:37:57 +00:00
This commit is contained in:
deadc0de6
2020-11-09 15:16:53 +01:00
parent fc9c12c1b0
commit 4517c3902c
5 changed files with 7 additions and 6 deletions

View File

@@ -639,19 +639,19 @@ class CfgYaml:
if len(val) < 3:
err = 'bad format for chmod: {}'.format(val)
self._log.err(err)
raise YamlException('dotfile chmod error: {}'.format(err))
raise YamlException(err)
try:
int(val)
except Exception:
err = 'bad format for chmod: {}'.format(val)
self._log.err(err)
raise YamlException('dotfile chmod error: {}'.format(err))
raise YamlException(err)
for x in val:
y = int(x)
if y < 0 or y > 7:
err = 'bad format for chmod: {}'.format(val)
self._log.err(err)
raise YamlException('dotfile chmod error: {}'.format(err))
raise YamlException(err)
return new