From 15d79f5926b030d54c2f5a72affac181b4386e1f Mon Sep 17 00:00:00 2001
From: Dominik George <nik@naturalnet.de>
Date: Thu, 16 Jan 2020 21:29:55 +0100
Subject: [PATCH] Coherce empty locale to string

---
 calendarweek/util.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/calendarweek/util.py b/calendarweek/util.py
index 466b950..913c0f4 100644
--- a/calendarweek/util.py
+++ b/calendarweek/util.py
@@ -3,7 +3,7 @@ from typing import Optional
 
 
 def normalise_locale(loc: str, enc: Optional[str] = None) -> str:
-    loc = locale_alias.get(loc, loc)
+    loc = locale_alias.get(loc, loc) or ""
     if loc:
         if enc:
             enc = locale_encoding_alias.get(enc.replace("-", ""), enc)
-- 
GitLab