Skip to content

Commit

Permalink
Bugfix: lib.alignments - Remove buggy file extension check
Browse files Browse the repository at this point in the history
  • Loading branch information
torzdf committed Oct 29, 2019
1 parent 8a721c7 commit cc576bc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/alignments.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,10 @@ def get_location(self, folder, filename):
# Reformat legacy alignments file
filename = self.update_file_format(folder, filename)
logger.debug("Updated legacy alignments. New filename: '%s'", filename)
elif not extension:
else:
filename = "{}.{}".format(filename, self.serializer.file_extension)
logger.debug("File extension set from serializer: '%s'",
self.serializer.file_extension)
elif extension != ".fsa":
raise FaceswapError("{} is not a valid alignments file".format(filename))
location = os.path.join(str(folder), filename)
if not os.path.exists(location):
# Test for old format alignments files and reformat if they exist
Expand Down

0 comments on commit cc576bc

Please sign in to comment.