mirror of
https://github.com/OpenKMIP/PyKMIP.git
synced 2025-07-19 20:14:27 +02:00
Set the except clause as a parenthesized tuple
This commit is contained in:
parent
fe60ecf02d
commit
645cbf2ae9
@ -63,7 +63,7 @@ if __name__ == '__main__':
|
|||||||
for initial_date in initial_dates:
|
for initial_date in initial_dates:
|
||||||
try:
|
try:
|
||||||
t = time.strptime(initial_date)
|
t = time.strptime(initial_date)
|
||||||
except ValueError, TypeError:
|
except (ValueError, TypeError):
|
||||||
logger.error(
|
logger.error(
|
||||||
"Invalid initial date provided: {}".format(initial_date)
|
"Invalid initial date provided: {}".format(initial_date)
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user