Procházet zdrojové kódy

Handle probes that hit directories.

Jelmer Vernooij před 7 roky
rodič
revize
3960c009f2
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      dulwich/refs.py

+ 1 - 1
dulwich/refs.py

@@ -564,7 +564,7 @@ class DiskRefsContainer(RefsContainer):
                     # Read only the first 40 bytes
                     return header + f.read(40 - len(SYMREF))
         except IOError as e:
-            if e.errno == errno.ENOENT:
+            if e.errno in (errno.ENOENT, errno.EISDIR):
                 return None
             raise