Skip to content

Commit

Permalink
Check version argument is a CFVersion object and convert it if not. #17
Browse files Browse the repository at this point in the history
  • Loading branch information
RosalynHatcher committed Aug 13, 2019
1 parent 3b67e25 commit 4583932
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cfchecker/cfchecks.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,9 @@ def __init__(self, uploader=None, useFileName="yes", badc=None, coards=None,
if debug:
self.categories += ("DEBUG",)

if not isinstance(self.version, CFVersion):
self.version = CFVersion(self.version)


def checker(self, file):

Expand Down

0 comments on commit 4583932

Please sign in to comment.