Browse Source

Fix Python2 compatibility when creating tiles dir

Baptiste Jonglez 7 years ago
parent
commit
c2e6f84738
1 changed files with 2 additions and 2 deletions
  1. 2 2
      panorama/utils.py

+ 2 - 2
panorama/utils.py

@@ -51,9 +51,9 @@ else:
             return os.makedirs(name, mode=mode)
         # Emulate exist_ok behaviour
         try:
-            res = os.makedirs(name, mode=mode)
+            return os.makedirs(name, mode=mode)
         except OSError as e:
             if e.errno == os.errno.EEXIST:
-                return res
+                return
             else:
                 raise