Skip to content

Commit

Permalink
test if _docs is present
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitc committed Aug 5, 2009
1 parent d65234a commit 1e1a37c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/couchapp/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 1e1a37c

Please sign in to comment.