mirror of https://github.com/OpenKMIP/PyKMIP.git
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:
|
||||
try:
|
||||
t = time.strptime(initial_date)
|
||||
except ValueError, TypeError:
|
||||
except (ValueError, TypeError):
|
||||
logger.error(
|
||||
"Invalid initial date provided: {}".format(initial_date)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue