Skip to content

Commit 5b0303b

Browse files
fix: replace 3 bare except clauses with except Exception (#3980)
Co-authored-by: petyaslavova <petya.slavova@redis.com>
1 parent e9fba86 commit 5b0303b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

doctests/query_em.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@
4545
print(res.total)
4646
# >>> 1
4747
assert res.total == 1
48-
except:
48+
except Exception:
4949
print("'@price:[270]' syntax not yet supported.")
5050

5151
try:
5252
res = index.search(Query("@price==270")) # not yet supported in redis-py
5353
print(res.total)
5454
# >>> 1
5555
assert res.total == 1
56-
except:
56+
except Exception:
5757
print("'@price==270' syntax not yet supported.")
5858

5959
query = Query("*").add_filter(NumericFilter("price", 270, 270))
@@ -89,7 +89,7 @@
8989
try:
9090
res = idx_email.search(Query("test@redis.com").dialect(2))
9191
print(res)
92-
except:
92+
except Exception:
9393
print("'test@redis.com' syntax not yet supported.")
9494
# REMOVE_START
9595
r.ft("idx:email").dropindex(delete_documents=True)

0 commit comments

Comments
 (0)