forked from jan/fatamorgana
warn at higher stacklevel
This commit is contained in:
parent
3ee1c03f66
commit
d3ba2ca2af
@ -1221,7 +1221,7 @@ class GridRepetition:
|
|||||||
if b_count < 2:
|
if b_count < 2:
|
||||||
b_count = None
|
b_count = None
|
||||||
b_vector = None
|
b_vector = None
|
||||||
warnings.warn('Removed b_count and b_vector since b_count == 1')
|
warnings.warn('Removed b_count and b_vector since b_count == 1', stacklevel=2)
|
||||||
|
|
||||||
if a_count < 2:
|
if a_count < 2:
|
||||||
raise InvalidDataError(f'Repetition has too-small a_count: {a_count}')
|
raise InvalidDataError(f'Repetition has too-small a_count: {a_count}')
|
||||||
|
Loading…
Reference in New Issue
Block a user