Skip to content
Myr

Moved uuid import out of an except block

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 366e2b4 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:click/types.py+1 added-1 removed
207 unmodified lines
208class UUIDParameterType(ParamType):209 name = 'uuid'210211 def convert(self, value, param, ctx):212 import uuid213 try:213 import uuid214 return uuid.UUID(value)215 except ValueError:216 self.fail('%s is not a valid UUID value' % value, param, ctx)217
214 unmodified lines