aboutsummaryrefslogtreecommitdiff
path: root/gitosis/gitdaemon.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitosis/gitdaemon.py')
-rw-r--r--gitosis/gitdaemon.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/gitosis/gitdaemon.py b/gitosis/gitdaemon.py
index e1e0e9a..e529302 100644
--- a/gitosis/gitdaemon.py
+++ b/gitosis/gitdaemon.py
@@ -30,13 +30,7 @@ def allow_export(repopath):
def deny_export(repopath):
"""Remove the ``git-daemon-export-ok`` marker for a given repository."""
path = export_ok_path(repopath)
- try:
- os.unlink(path)
- except OSError, ex:
- if ex.errno == errno.ENOENT:
- pass
- else:
- raise
+ util.unlink(path)
def _extract_reldir(topdir, dirpath):
"""