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
|
elif isinstance(fetch_many, Collection): # not a string hahahahah
|
||||||
ef = tuple(rf[i]() for i in fetch_many)
|
ef = tuple(rf[i]() for i in fetch_many)
|
||||||
else:
|
else:
|
||||||
raise AttributeError(
|
raise TypeError()
|
||||||
f"please put one of the one, many, all, warnings in ty (you put {fetch_many})",
|
|
||||||
name=fetch_many,
|
|
||||||
obj=r,
|
|
||||||
)
|
|
||||||
except (TypeError, KeyError): # calling None exception
|
except (TypeError, KeyError): # calling None exception
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
return ef
|
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)
|
@better_connection_actuallyworking(connectionSettings)
|
||||||
|
|||||||
Reference in new issue
Block a user