Skip to content

Commit

Permalink
fix backward compatibility with python3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ilstam committed Apr 18, 2015
1 parent 2822c38 commit 62ee455
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ffmulticonverter/presets_dlgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ def load_xml(self):
"""Load xml tree and set xml root."""
try:
self.tree = etree.parse(self.current_presets_file)
except (etree.ParseError, FileNotFoundError):
except (etree.ParseError, IOError):
try:
self.tree = etree.parse(self.original_presets_file)
except FileNotFoundError:
except IOError:
# when program is not installed
try:
self.tree = etree.parse('share/' + config.presets_file_name)
except FileNotFoundError:
except IOError:
# when running from test_dialogs.py
self.tree = etree.parse(
'../share/' + config.presets_file_name)
Expand Down

0 comments on commit 62ee455

Please sign in to comment.