Skip to content

Commit

Permalink
Added some more debug logging for filebotfatalerror
Browse files Browse the repository at this point in the history
  • Loading branch information
Laharah committed May 13, 2017
1 parent a5adffa commit ffeb8e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions filebottool/core.py
Expand Up @@ -94,8 +94,8 @@ def enable(self):
self.filebot_version = pyfilebot.get_version()
log.info("Filebot Found with version {0}".format(
self.filebot_version))
except pyfilebot.FilebotFatalError:
log.error("Filebot cannot be found!")
except pyfilebot.FilebotFatalError as e:
log.error('FilebotFatalError ' + str(e))
self.filebot_version = None

self.torrent_manager = component.get("TorrentManager")
Expand Down
4 changes: 2 additions & 2 deletions filebottool/pyfilebot.py
Expand Up @@ -583,8 +583,8 @@ def _execute(process_arguments, workaround=True):
stderr=killableprocess.subprocess.PIPE,
stdin=killableprocess.subprocess.PIPE,
startupinfo=startupinfo)
except OSError:
raise FilebotFatalError("Filebot could not be found!")
except OSError as e:
raise FilebotFatalError("Error running Filebot! {0}".format(str(e)))

stdout, error = process.communicate()
exit_code = process.returncode
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -42,7 +42,7 @@
__plugin_name__ = "FileBotTool"
__author__ = "laharah"
__author_email__ = "laharah+fbt@gmail.com"
__version__ = "1.1.8"
__version__ = "1.1.9"
__url__ = "https://github.com/Laharah/deluge-FileBotTool"
__license__ = "GPLv3"
__description__ = "Integrates FileBot functionality to Deluge"
Expand Down

0 comments on commit ffeb8e5

Please sign in to comment.