diff --git a/britney.py b/britney.py index c92aa00..e42d81a 100755 --- a/britney.py +++ b/britney.py @@ -3048,6 +3048,13 @@ class Britney(object): else: self.upgrade_me = self.options.actions.split() + # skip upgrade testing if UPGRADE_OUTPUT option is absent or empty + try: + if not self.options.upgrade_output: + return + except AttributeError: + return + with open(self.options.upgrade_output, 'w', encoding='utf-8') as f: self.__output = f