Skip to content

Commit

Permalink
Merge pull request #3958 from RasaHQ/count-temp-files-fix
Browse files Browse the repository at this point in the history
Ignore permission errors in count_rasa_temp_files
  • Loading branch information
erohmensing committed Jul 8, 2019
2 parents db8717e + 6f676d6 commit 76a9118
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/cli/test_rasa_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,13 @@ def count_rasa_temp_files():
if not entry.is_dir():
continue

for f in os.listdir(entry.path):
if f.endswith("_nlu.md") or f.endswith("_stories.md"):
count += 1
try:
for f in os.listdir(entry.path):
if f.endswith("_nlu.md") or f.endswith("_stories.md"):
count += 1
except PermissionError:
# Ignore permission errors
pass

return count

Expand Down

0 comments on commit 76a9118

Please sign in to comment.