We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 595e048 commit bd4a57dCopy full SHA for bd4a57d
1 file changed
frugy/fru.py
@@ -142,10 +142,11 @@ def fmt_tree(part):
142
143
def postprocess_yaml(self, data):
144
result = ''
145
- if len(import_log.str) != 0:
146
- import_log.str = '\n' + import_log.str
147
- for line in [self.comment, *import_log.str.splitlines()]:
148
- result += f'# {line}\n'
+ if hasattr(import_log, 'str'):
+ if len(import_log.str) != 0:
+ import_log.str = '\n' + import_log.str
+ for line in [self.comment, *import_log.str.splitlines()]:
149
+ result += f'# {line}\n'
150
line_prev = ''
151
for line in data.splitlines():
152
if line.endswith(':') and not line.startswith(' '):
0 commit comments