Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
qitia committed Jul 2, 2019
1 parent b27a291 commit 4a0530a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bingads/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def errorcode_of_exception(ex):
and hasattr(ex.fault.detail.AdApiFaultDetail.Errors, 'AdApiError'):
ad_api_errors = ex.fault.detail.AdApiFaultDetail.Errors.AdApiError
if type(ad_api_errors) == list:
return ad_api_erros[0].Code
return ad_api_errors[0].Code
else:
return ad_api_errors.Code
return -1

0 comments on commit 4a0530a

Please sign in to comment.