mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 23:02:19 +00:00
Check for a null kwargs and pass a empty dict
This commit is contained in:
@@ -16,6 +16,8 @@ def import_corp_details(corp_id, callback=None, **kwargs):
|
|||||||
corp = import_corp_details_func(corp_id, log)
|
corp = import_corp_details_func(corp_id, log)
|
||||||
except APIAccessException, exc:
|
except APIAccessException, exc:
|
||||||
log.error('Error importing corporation - queueing for retry')
|
log.error('Error importing corporation - queueing for retry')
|
||||||
|
if not kwargs:
|
||||||
|
kwargs = {}
|
||||||
import_corp_details.retry(args=[corp_id, callback], exc=exc, kwargs=kwargs)
|
import_corp_details.retry(args=[corp_id, callback], exc=exc, kwargs=kwargs)
|
||||||
else:
|
else:
|
||||||
if callback:
|
if callback:
|
||||||
|
|||||||
Reference in New Issue
Block a user