logic change 2
This commit is contained in:
1 parent
22647dce11
commit
16725b6c29
1 file changed
+6
-5
@@ -134,15 +134,16 @@ def query_once_fetch_lda(
|
||||
elif isinstance(fetch_many, Collection): # not a string hahahahah
|
||||
ef = tuple(rf[i]() for i in fetch_many)
|
||||
else:
|
||||
raise AttributeError(
|
||||
f"please put one of the one, many, all, warnings in ty (you put {fetch_many})",
|
||||
name=fetch_many,
|
||||
obj=r,
|
||||
)
|
||||
raise TypeError()
|
||||
except (TypeError, KeyError): # calling None exception
|
||||
pass
|
||||
else:
|
||||
return ef
|
||||
raise AttributeError(
|
||||
f"please put one of the one, many, all, warnings in ty (you put {fetch_many})",
|
||||
name=fetch_many,
|
||||
obj=r,
|
||||
)
|
||||
|
||||
|
||||
@better_connection_actuallyworking(connectionSettings)
|
||||
|
||||
Reference in new issue
Block a user