elwig-backend: Fix 401 with unknown username
This commit is contained in:
@ -15,7 +15,7 @@ import urllib.parse
|
||||
import gzip
|
||||
|
||||
|
||||
VERSION: str = '0.0.2'
|
||||
VERSION: str = '0.0.3'
|
||||
|
||||
CNX: sqlite3.Cursor
|
||||
USER_FILE: str
|
||||
@ -541,6 +541,8 @@ class ElwigApi(BaseHTTPRequestHandler):
|
||||
else:
|
||||
self.error(401, 'Unauthorized')
|
||||
return None, None
|
||||
self.error(401, 'Unauthorized')
|
||||
return None, None
|
||||
|
||||
def exec_collection(self, sql_query: str, fmt: Callable, filters: list[Filter],
|
||||
offset: int = None, limit: int = None,
|
||||
|
Reference in New Issue
Block a user