Skip to content

Commit 4c6dbb8

Browse files
dhalberttannewt
andauthored
Update adafruit_ble/services/standard/device_info.py
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
1 parent 674d10d commit 4c6dbb8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

adafruit_ble/services/standard/device_info.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,7 @@ def __init__(
7373
except ImportError:
7474
pass
7575
if firmware_revision is None:
76-
try:
77-
firmware_revision = os.uname().version
78-
except AttributeError:
79-
pass
76+
firmware_revision = getattr(os.uname(), "version", None)
8077
super().__init__(
8178
manufacturer=manufacturer,
8279
software_revision=software_revision,

0 commit comments

Comments
 (0)