Commit 0d3604b9 authored by Łukasz Nowak's avatar Łukasz Nowak Committed by Rafael Monnerat

Inform in case of missing package.

parent e3935374
......@@ -197,6 +197,11 @@ class ERP5FacebookExtractionPlugin(ERP5ExternalOauth2ExtractionPlugin, BasePlugi
header_string = 'facebook'
def getUserEntry(self, token):
if facebook is None:
LOG('ERP5FacebookExtractionPlugin', INFO,
'No facebook module, install facebook-sdk package. '
'Authentication disabled.')
return None
timeout = socket.getdefaulttimeout()
try:
# require really fast interaction
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment