Explorar o código

HUE-8737 [fb] Fix python3 port creating 500 on down HDFS

Romain %!s(int64=6) %!d(string=hai) anos
pai
achega
19fc1ee3f2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apps/filebrowser/src/filebrowser/views.py

+ 1 - 1
apps/filebrowser/src/filebrowser/views.py

@@ -225,7 +225,7 @@ def view(request, path):
     except (IOError, WebHdfsException) as e:
         msg = _("Cannot access: %(path)s. ") % {'path': escape(path)}
 
-        if "Connection refused" in e.args[0]:
+        if "Connection refused" in str(e):
             msg += _(" The HDFS REST service is not available. ")
 
         if request.is_ajax():