Skip to content

Commit

Permalink
chore(Session): Make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamek committed Jun 27, 2024
1 parent f8c5f8a commit 9d82022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion huawei_lte_api/Session.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def _check_response_status(data: dict) -> Union[dict, str]:
}

if 'error' in data:
error = data.get('error')
error = data.get('error', {})
error_code = int(error['code'])
message = error.get('message')
if not message:
Expand Down

0 comments on commit 9d82022

Please sign in to comment.