Merge pull request #533 from bongbui321/exit_with_error

exit with error
This commit is contained in:
Bjoern Kerler 2024-04-24 10:01:45 +02:00 committed by GitHub
commit 2ed24c090f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

5
edl
View file

@ -379,7 +379,10 @@ class main(metaclass=LogBase):
if cmd != "":
self.info("Trying to connect to firehose loader ...")
if fh.connect(sahara):
fh.handle_firehose(cmd, options)
if not fh.handle_firehose(cmd, options):
sys.exit(1)
else:
sys.exit(1)
if __name__ == '__main__':