Skip to content

Commit

Permalink
Improved error reporting of mysterious failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Laharah committed May 3, 2018
1 parent d219861 commit cfa635a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
@@ -1,7 +1,7 @@
# FilebotTool: FileBot Integration for Deluge
*requires [Filebot](http://www.filebot.net/)*

**Version 1.1.11**
**Version 1.1.12**

##### [Download Latest Release](https://github.com/Laharah/deluge-FilebotTool/releases/latest)

Expand Down
10 changes: 9 additions & 1 deletion filebottool/gtkui/common.py
Expand Up @@ -5,6 +5,14 @@

# noinspection PyUnresolvedReferences
import gtk
import re


def version_tuple(s):
# if not re.match(r'\d+\.', s):
# raise ValueError("Cannot parse version {0}.".format(s))
return tuple(int(x) for x in s.split('.'))



def inflate_list_store_combo(model_data, combo_widget):
Expand Down Expand Up @@ -106,4 +114,4 @@ def replace_model(self, new_model):
"""

self.model = new_model
self.view.set_model(self.model)
self.view.set_model(self.model)
5 changes: 3 additions & 2 deletions filebottool/pyfilebot.py
Expand Up @@ -2,7 +2,7 @@
FilebotHandler convenience class.
"""
__author__ = 'laharah'
__version__ = '0.3.0'
__version__ = '0.3.1'

import re
import os
Expand Down Expand Up @@ -145,7 +145,8 @@ def rename(targets,
exit_code, data, filebot_error = _execute(filebot_arguments, workaround)

if exit_code != 0:
raise FilebotRuntimeError("FILEBOT OUTPUT DUMP:\n{0}".format(data))
raise FilebotRuntimeError("FILEBOT OUTPUT DUMP:\n{0}\nstderr:\n{1}".format(
data, filebot_error))

return parse_filebot(data)

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.11"
__version__ = "1.1.12"
__url__ = "https://github.com/Laharah/deluge-FileBotTool"
__license__ = "GPLv3"
__description__ = "Integrates FileBot functionality to Deluge"
Expand Down

0 comments on commit cfa635a

Please sign in to comment.