Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
Getting weird errors, can't keep eyes open.
Browse files Browse the repository at this point in the history
   flushed += hera.flushObjectsByPattern(pattern, return_list)
     TypeError: 'NoneType' object is not iterable
  • Loading branch information
clouserw committed Aug 18, 2010
1 parent 041c785 commit 1706c6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hera/contrib/django_utils.py
Expand Up @@ -55,7 +55,9 @@ def flush_urls(urls, prefix="", return_list=False):

for url in urls:
pattern = "%s%s" % (prefix, url)
flushed += hera.flushObjectsByPattern(pattern, return_list)
l = hera.flushObjectsByPattern(pattern, return_list)
if l:
flushed += l

flushed = list(set(flushed)) # deduplicate

Expand Down

0 comments on commit 1706c6e

Please sign in to comment.