diff --git a/calm/pkg2html.py b/calm/pkg2html.py
index ea4cb8f..70b0aeb 100755
--- a/calm/pkg2html.py
+++ b/calm/pkg2html.py
@@ -125,7 +125,10 @@ def arch_packages(packages, p):
def ensure_dir_exists(args, path):
if not args.dryrun:
utils.makedirs(path)
- os.chmod(path, 0o755)
+ try:
+ os.chmod(path, 0o755)
+ except PermissionError:
+ pass
#