Check save file result
This commit is contained in:
1 parent
227905dc04
commit
6982393d03
1 file changed
+3
-1
@@ -229,7 +229,9 @@ class FocusCompliance(Request):
|
|||||||
file_type='docx',
|
file_type='docx',
|
||||||
path=path
|
path=path
|
||||||
)
|
)
|
||||||
|
if not result['success']:
|
||||||
|
return {'success': False, 'result': result['message']}
|
||||||
|
|
||||||
return {'success': True, 'file': result}
|
return {'success': True, 'file': result}
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
return {'success': False, 'result': 'Организация не найдена'}
|
return {'success': False, 'result': 'Организация не найдена'}
|
||||||
|
|||||||
Reference in new issue
Block a user