1amSimp1e / dots

Nothing here but Dotfiles & Customization 💫
GNU General Public License v3.0
1.21k stars 70 forks source link

'NoneType' object has no attribute 'split' #6

Closed NextWork123 closed 1 year ago

NextWork123 commented 1 year ago

Hello,i'm using a distro based on arch linux (cachyos) with hyprland. The script of waybar "weather.py" give this error i don't know how to fix

Traceback (most recent call last):
  File "/home/next/.config/waybar/scripts/weather.py", line 47, in <module>
    status_code = html_data("#regionHeader").attr("class").split(" ")[2].split("-")[2]
AttributeError: 'NoneType' object has no attribute 'split' 

I hope you can help me to fix that.

1amSimp1e commented 1 year ago

I got that script on another post, currently updating that weather script.

NextWork123 commented 1 year ago

Ok thanks, i'm trying to fix aswell so if i found a fix i gonna open a pull

1amSimp1e commented 1 year ago

ok thanks alot