Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

test if _docs is present

  • Loading branch information...
commit 1e1a37c7740c7ee3a518c3adff16068f62e5540f 1 parent d65234a
@benoitc benoitc authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/couchapp/app.py
View
5 src/couchapp/app.py
@@ -171,7 +171,10 @@ def push(self, dbstring, app_name, **kwargs):
# get docs from _docs folder
docs_dir = self.ui.rjoin(self.app_dir, '_docs')
- docs = self.fs_to_docs(docs_dir)
+ if self.ui.isdir(docs_dir):
+ docs = self.fs_to_docs(docs_dir)
+ else:
+ docs = []
# do we export ?
if kwargs.get('export', False):
Please sign in to comment.
Something went wrong with that request. Please try again.