diff options
Diffstat (limited to 'libs/apprise/plugins/NotifyPushBullet.py')
-rw-r--r-- | libs/apprise/plugins/NotifyPushBullet.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/apprise/plugins/NotifyPushBullet.py b/libs/apprise/plugins/NotifyPushBullet.py index 9bae32f96..53240d2e7 100644 --- a/libs/apprise/plugins/NotifyPushBullet.py +++ b/libs/apprise/plugins/NotifyPushBullet.py @@ -367,8 +367,9 @@ class NotifyPushBullet(NotifyBase): except (OSError, IOError) as e: self.logger.warning( - 'An I/O error occurred while reading {}.'.format( - payload.name if payload else 'attachment')) + 'An I/O error occurred while handling {}.'.format( + payload.name if isinstance(payload, AttachBase) + else payload)) self.logger.debug('I/O Exception: %s' % str(e)) return False, response |