Skip to content

Commit d8f3fb7

Browse files
authored
Merge pull request #611 from onlined/patch-1
Fix exception raise
2 parents 1f95d06 + 5a8b3b8 commit d8f3fb7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pygsheets/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def format_color(data, to='dict'):
143143
:param to: 'dict' or 'tuple'
144144
"""
145145
if not (type(data) is dict or type(data) is tuple):
146-
InvalidArgumentValue('data should be tuple or dict')
146+
raise InvalidArgumentValue('data should be tuple or dict')
147147

148148
if type(data) is tuple and to == 'dict':
149149
return {"red": data[0], "green": data[1], "blue": data[2], "alpha": data[3]}

0 commit comments

Comments
 (0)