Update main.py

This commit is contained in:
Saifeddine ALOUI 2024-01-16 11:33:02 +01:00 committed by GitHub
parent b29a3c20a5
commit ac7dc7aef6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ def main():
class RequestHandler(BaseHTTPRequestHandler):
def add_access_log_entry(self, user, ip_address, access, server):
log_file_path = args.log_path
log_file_path = Path(args.log_path)
if not log_file_path.exists():
with open(log_file_path, mode='w', newline='') as csvfile: