File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -154,11 +154,14 @@ def prepend_https(cls, url):
154
154
return url
155
155
156
156
url = url .strip ()
157
+ # If the URL is empty, return None to avoid validation errors
158
+ if not url :
159
+ return None
157
160
if not url .startswith ("http" ):
158
161
# @tb: in some cases we drop the event because of invalid url with no scheme
159
162
# invalid or missing URL scheme (type=value_error.url.scheme)
160
163
url = f"https://{ url } "
161
- return urllib .parse .quote (url , safe = ' /:?=&' )
164
+ return urllib .parse .quote (url , safe = " /:?=&" )
162
165
163
166
@validator ("lastReceived" , pre = True , always = True )
164
167
def validate_last_received (cls , last_received ):
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " keep"
3
- version = " 0.41.12 "
3
+ version = " 0.41.13 "
4
4
description = " Alerting. for developers, by developers."
5
5
authors = [" Keep Alerting LTD" ]
6
6
packages = [{include = " keep" }]
You can’t perform that action at this time.
0 commit comments