Преглед на файлове

Handle probes that hit directories.

Jelmer Vernooij преди 7 години
родител
ревизия
3960c009f2
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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