Skip to content

Commit

Permalink
Update log_extract.py
Browse files Browse the repository at this point in the history
fixed issue if output folder didn't exist
  • Loading branch information
cbasnett authored Feb 18, 2021
1 parent 14fc77a commit e0db525
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Log Extractor/log_extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ def parse_event(event):
return evt

def parse(output, gz):
if not os.path.exists(output):
os.mkdir(output)
for c in get_all_channels():
name = c.replace('/','_')
try:
Expand Down Expand Up @@ -136,7 +138,7 @@ def parse(output, gz):

if not args.output:
parser.print_help()

elif args.gzip:
if is_admin():
parse(args.output, True)
Expand Down

0 comments on commit e0db525

Please sign in to comment.