diff options
| -rw-r--r-- | Mailman/Utils.py | 2 | ||||
| -rw-r--r-- | modules/mm_utils.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py index 680ab7497..5869cc91d 100644 --- a/Mailman/Utils.py +++ b/Mailman/Utils.py @@ -63,7 +63,7 @@ def GetPathPieces(path): try: while 1: l.remove('') - except: + except ValueError: pass return l diff --git a/modules/mm_utils.py b/modules/mm_utils.py index 680ab7497..5869cc91d 100644 --- a/modules/mm_utils.py +++ b/modules/mm_utils.py @@ -63,7 +63,7 @@ def GetPathPieces(path): try: while 1: l.remove('') - except: + except ValueError: pass return l |
