mirror of
https://github.com/joshuaboniface/rffmpeg.git
synced 2026-01-23 02:24:03 +00:00
Add check for log file existence
This commit is contained in:
parent
6117e0d81d
commit
cfe816a377
1 changed files with 4 additions and 0 deletions
4
rffmpeg
4
rffmpeg
|
|
@ -960,6 +960,10 @@ def run_control(config):
|
|||
View the rffmpeg log file.
|
||||
"""
|
||||
if follow_flag:
|
||||
if not os.path.exists(config["logfile"]):
|
||||
click.echo("Failed to find log file; have you initialized rffmpeg?")
|
||||
exit(1)
|
||||
|
||||
with open(config["logfile"]) as file_:
|
||||
# Go to the end of file
|
||||
file_.seek(0, 2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue