1
0
Fork 0

fix assertion

This commit is contained in:
Nick Sweeting 2021-02-08 23:24:48 -05:00
parent 0e6ac39ee1
commit 6705354e57

View file

@ -59,7 +59,7 @@ class ArchiveResult:
# TODO: replace emptystrings in these three with None / remove them from the DB
assert self.pwd is None or isinstance(self.pwd, str)
assert self.cmd_version is None or isinstance(self.cmd_version, str)
assert self.output is None or (isinstance(self.output, (str, Exception))
assert self.output is None or isinstance(self.output, (str, Exception))
@classmethod
def guess_ts(_cls, dict_info):