Skip to content

Commit e3b899c

Browse files
authored
Fix shell reporter running even when diff is empty (#837)
1 parent 30f143b commit e3b899c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/urlwatch/reporters.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1113,12 +1113,14 @@ class ShellReporter(TextReporter):
11131113
__kind__ = 'shell'
11141114

11151115
def submit(self):
1116-
text = '\n'.join(super().submit()) + '\n'
1116+
text = '\n'.join(super().submit())
11171117

11181118
if not text:
11191119
logger.debug('Not calling shell reporter (no changes)')
11201120
return
11211121

1122+
text = text + '\n'
1123+
11221124
cmd = self.config['command']
11231125

11241126
process = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)

0 commit comments

Comments
 (0)