Skip to content

Commit e72b2a9

Browse files
lucemiaG8s Bot
andauthored
fix sender allow emptry string (#409)
Co-authored-by: G8s Bot <[email protected]>
1 parent da1dd61 commit e72b2a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyowm/weatherapi25/national_weather_alert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class NationalWeatherAlert:
3030
:raises: *ValueError* if any parameter has wrong type
3131
"""
3232
def __init__(self, sender, title, description, start_time, end_time, tags=None):
33-
assert sender, 'Event sender name must be specified'
33+
assert sender is not None, 'Event sender name must be specified'
3434
assert title, 'Event title must be specified'
3535
assert description, 'Event description must be specified'
3636
assert start_time, 'Event start time must be specified'

0 commit comments

Comments
 (0)