diff --git a/vdirsyncer/storage/dav.py b/vdirsyncer/storage/dav.py index 671e65f..2208ae7 100644 --- a/vdirsyncer/storage/dav.py +++ b/vdirsyncer/storage/dav.py @@ -71,7 +71,7 @@ def _catch_generator_exceptions(f): try: for x in f(*args, **kwargs): yield x - except RequestException, exceptions.Error: + except (RequestException, exceptions.Error): pass return inner