Skip to content

Make sure battery_life argument exists before comparison - #88

Merged
tchellomello merged 1 commit into
masterfrom
issue_86
May 16, 2018
Merged

Make sure battery_life argument exists before comparison#88
tchellomello merged 1 commit into
masterfrom
issue_86

Conversation

@tchellomello

Copy link
Copy Markdown
Member

Fixes #86

Make sure battery_life argument exists before comparison

 value = int(self._attrs.get('battery_life'))
 TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

 value = int(self._attrs.get('battery_life'))
 TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
@tchellomello tchellomello added the bug Label for issues that report a bug label May 16, 2018
@tchellomello tchellomello self-assigned this May 16, 2018
@coveralls

coveralls commented May 16, 2018

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 65.854% when pulling 1e08c42 on issue_86 into d2f242e on master.

@tchellomello
tchellomello merged commit f546af0 into master May 16, 2018
@tchellomello
tchellomello deleted the issue_86 branch May 16, 2018 04:05
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Label for issues that report a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Getting TypeError

2 participants