From 23cc414312a740cd1b520abf6390082fbe7864a0 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Mon, 22 Jan 2024 09:39:48 +0100 Subject: [PATCH] Update main.py --- ollama_proxy_server/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ollama_proxy_server/main.py b/ollama_proxy_server/main.py index b054151..3bb5b3a 100644 --- a/ollama_proxy_server/main.py +++ b/ollama_proxy_server/main.py @@ -30,6 +30,8 @@ def get_authorized_users(filename): lines = f.readlines() authorized_users = {} for line in lines: + if line=="": + continue try: user, key = line.strip().split(':') authorized_users[user] = key