chg: [apiosintds] make flake8 happy

pull/347/head
Alexandre Dulaunoy 2019-10-29 09:33:39 +01:00
parent 36d9873d8c
commit dec2494a0a
No known key found for this signature in database
GPG Key ID: 09E2CD4944E6CBCD
1 changed files with 5 additions and 1 deletions

View File

@ -25,6 +25,7 @@ moduleinfo = {'version': '0.1', 'author': 'Davide Baglieri aka davidonzo',
moduleconfig = ['import_related_hashes', 'cache', 'cache_directory']
def handler(q=False):
if q is False:
return False
@ -85,7 +86,7 @@ def handler(q=False):
misperrors['error'] = ErrorMSG
return misperrors
else:
log.debug("Cache option is set to "+request['config'].get('cache')+". You are not using the internal cache system and this is NOT recommended!")
log.debug("Cache option is set to " + request['config'].get('cache') + ". You are not using the internal cache system and this is NOT recommended!")
log.debug("Please, consider to turn on the cache setting it to 'Yes' and specifing a writable directory for the cache directory option.")
try:
response = apiosintDS.request(entities=tosubmit, cache=submitcache, cachedirectory=submitcache_directory, verbose=True)
@ -97,6 +98,7 @@ def handler(q=False):
misperrors['error'] = str(e)
return r
def apiosintParser(response, import_related_hashes):
ret = []
if isinstance(response, dict):
@ -133,9 +135,11 @@ def apiosintParser(response, import_related_hashes):
ret.append({"types": ["text"], "values": [comment]})
return ret
def introspection():
return mispattributes
def version():
moduleinfo['config'] = moduleconfig
return moduleinfo