Skip to content

Commit

Permalink
🐛 fix version 0.33.7
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Nov 22, 2023
1 parent 249963d commit 2027d9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nonebot_plugin_alconna/uniseg/segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class Media(Segment):
def __post_init__(self):
if self.path:
self.name = Path(self.path).name
if not urlparse(self.url).hostname:
if self.url and not urlparse(self.url).hostname:
self.url = f"https://{self.url}"

@property
Expand Down

0 comments on commit 2027d9f

Please sign in to comment.