-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
This line of code is causing an attibute error.
logger.debug('Response code: %s', request.status_code)
python-dlipower/dlipower/dlipower.py
Line 429 in 6d6c961
| logger.debug('Response code: %s', request.status_code) |
request is not guaranteed to have a value and so if the request fails, the code is trying to get the 'status_code' attribute of None which will result in an AttributeError exception being raised.
Example:
AttributeError: 'NoneType' object has no attribute 'status_code'
Metadata
Metadata
Assignees
Labels
No labels