From f261e40da952320912b242f7415d8772e0ad566c Mon Sep 17 00:00:00 2001
From: Dariusz Kedzierski <dkedzierski@syncad.com>
Date: Sun, 8 Nov 2020 17:27:43 +0100
Subject: [PATCH] Guard escape_characters with assert

---
 hive/utils/normalize.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hive/utils/normalize.py b/hive/utils/normalize.py
index ee7b22016..f0a2f6142 100644
--- a/hive/utils/normalize.py
+++ b/hive/utils/normalize.py
@@ -68,6 +68,7 @@ def to_nai(value):
 
 def escape_characters(text):
     """ Escape special charactes """
+    assert isinstance(text, str), "Expected string got: {}".format(type(text))
     if len(text.strip()) == 0:
         return "'" + text + "'"
 
-- 
GitLab