From 698243f5477f7aec93820ad27880a1802c789106 Mon Sep 17 00:00:00 2001 From: joshua Date: Mon, 3 Jul 2017 04:29:04 -0400 Subject: [PATCH] minor bugfix --- runner_notify.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/runner_notify.py b/runner_notify.py index 5f54859..b34b7ce 100644 --- a/runner_notify.py +++ b/runner_notify.py @@ -11,6 +11,7 @@ from os.path import join elif platform == "win32": from ballonNotify import Notification''' from notifications import Notification +from pushbullet import Pushbullet from optparse import OptionParser from ConfigParser import ConfigParser @@ -54,8 +55,6 @@ def main(options): regex = re.compile("Added (?:.*/)?(.*)-.* to library with id \d*") searcher = regex.search stripper = False - if options.pushbullet: - from pushbullet import Pushbullet for line in buf.readlines(): r = searcher(line) if r: @@ -111,6 +110,6 @@ if __name__ == "__main__": if options.pbdevice and not options.pushbullet: raise ValueError("Can't use a pushbullet device without key") if options.tag and not options.library: - raise ValueError("Can't strip tags from calibre library without a library location.") + raise ValueError("Can't strip tags from calibre library without a library location.") main(options)