diff --git a/ckanext/odsh/profiles.py b/ckanext/odsh/profiles.py
index 416f1f76c1cec7c4b980e9b8296fdafaa92748d9..34ed6957dd1a78ba890651b96eb978d8881a2093 100644
--- a/ckanext/odsh/profiles.py
+++ b/ckanext/odsh/profiles.py
@@ -100,7 +100,7 @@ def resource_formats():
     # at first try to get the actual file list online:
     try:
         format_european_url = config.get('ckan.odsh.resource_formats_url')
-        err_msg = "Could not get file formats from " + format_european_url
+        err_msg = "Could not get file formats from " + str(format_european_url)
         if not format_european_url:
             log.warning("Could not find config setting: 'ckan.odsh.resource_formats_url', using fallback instead.")
             format_european_url = "http://publications.europa.eu/resource/authority/file-type"