Skip to content

Commit 819dc96

Browse files
committed
Document ValueError being raised by UUID constructor
1 parent 45d00a0 commit 819dc96

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Doc/library/uuid.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ which relays any information about the UUID's safety, using this enumeration:
6666
UUID(int=0x12345678123456781234567812345678)
6767

6868
Exactly one of *hex*, *bytes*, *bytes_le*, *fields*, or *int* must be given.
69+
If any of these arguments are malformed, a :exc:`ValueError` is raised.
6970
The *version* argument is optional; if given, the resulting UUID will have its
7071
variant and version number set according to :rfc:`9562`, overriding bits in the
7172
given *hex*, *bytes*, *bytes_le*, *fields*, or *int*.

0 commit comments

Comments
 (0)