Skip to content

Commit

Permalink
user/pass is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
caronc committed Mar 8, 2024
1 parent 46946a7 commit 10ea34d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 3 additions & 2 deletions apprise/plugins/NotifyLunaSea.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,9 @@ def send(self, body, title='', notify_type=NotifyType.INFO, **kwargs):
if image_url:
payload['image'] = image_url

# Prepare our Authentication
auth = (self.user, self.password)
# Prepare our Authentication (if defined)
if self.user and self.password:
auth = (self.user, self.password)

if self.mode == LunaSeaMode.CLOUD:
# Cloud Service
Expand Down
4 changes: 0 additions & 4 deletions test/test_plugin_lunasea.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,6 @@
('lunasea://localhost/@user/@user2/?image=True', {
'instance': NotifyLunaSea,
}),
# A Email Testing
('lunasea://localhost/+device/?email=user@gmail.com', {
'instance': NotifyLunaSea,
}),
# Enforce image but not otherwise find one
('lunasea://localhost/+device/?image=True', {
'instance': NotifyLunaSea,
Expand Down

0 comments on commit 10ea34d

Please sign in to comment.