8000 docs: comment PDF viz dimensions XOR · LehmD/server-client-python@ffd0b8f · GitHub
[go: up one dir, main page]

Skip to content

Commit ffd0b8f

Browse files
committed
docs: comment PDF viz dimensions XOR
1 parent 7e44b5e commit ffd0b8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tableauserverclient/server/request_options.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ def get_query_params(self):
309309
if self.max_age != -1:
310310
params["maxAge"] = self.max_age
311311

312+
# XOR. Either both are None or both are not None.
312313
if (self.viz_height is None) ^ (self.viz_width is None):
313314
raise ValueError("viz_height and viz_width must be specified together")
314315

0 commit comments

Comments
 (0)
0