Update gntp-1.0.3

This commit is contained in:
JonnyWong16 2021-10-14 23:45:51 -07:00
parent 624ae06b35
commit e55576fd80
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
6 changed files with 15 additions and 26 deletions

View file

@ -118,9 +118,9 @@ def main():
# This would likely be better placed within the growl notifier
# class but until I make _checkIcon smarter this is "easier"
if options.icon is not None and not options.icon.startswith('http'):
if options.icon and growl._checkIcon(options.icon) is False:
logging.info('Loading image %s', options.icon)
f = open(options.icon)
f = open(options.icon, 'rb')
options.icon = f.read()
f.close()