RingOV / gis-weather

Customizable weather widget
58 stars 18 forks source link

Python 3.8 removed function #46

Closed Dany-Dan closed 4 years ago

Dany-Dan commented 4 years ago

Since Python 3.8 update, the "Block Additional info" is not working anymore and the log displays this error : if platform.dist()[0] == 'debian': AttributeError: module 'platform' has no attribute 'dist'

platform.dist() was deprecated and has been removed from Python 3.8. To resolve the issue, I replaced it with :

import distro
if distro.linux_distribution()[0] == 'debian':
RingOV commented 4 years ago

ec0e15c8fdaf3b0e871406370df71b3d65d01224 Fixed

Dany-Dan commented 4 years ago

Thank you !