Another indentation-related fix

This commit is contained in:
Lamar Pavel 2015-05-28 13:20:00 +02:00
parent f5d299d8c7
commit 63c9e6a444

View File

@ -821,9 +821,8 @@ class File(BaseType):
try:
if not os.path.isabs(value):
cfgdir = standarddir.config()
if cfgdir:
if os.path.isfile(os.path.join(cfgdir, value)):
return
if cfgdir and os.path.isfile(os.path.join(cfgdir, value)):
return
raise configexc.ValidationError(value,
"must be an absolute path!")
if not os.path.isfile(value):