From dba951412cf157ee0046a0971796613650513f7a Mon Sep 17 00:00:00 2001 From: iperov Date: Tue, 25 Dec 2018 19:49:19 +0400 Subject: [PATCH] fix DFLPNG --- utils/DFLPNG.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/DFLPNG.py b/utils/DFLPNG.py index 27254e5..3e6f2fc 100644 --- a/utils/DFLPNG.py +++ b/utils/DFLPNG.py @@ -252,7 +252,7 @@ class DFLPNG(object): inst = DFLPNG.load_raw (filename) inst.fcwp_dict = inst.getDFLDictData() - if 'face_type' not in inst.fcwp_dict.keys(): + if (inst.fcwp_dict is not None) and ('face_type' not in inst.fcwp_dict.keys()): inst.fcwp_dict['face_type'] = FaceType.toString (FaceType.FULL) if inst.fcwp_dict == None: