2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-30 15:13:38 +00:00

Set the except clause as a parenthesized tuple

This commit is contained in:
Joel Capitao
2020-09-15 15:50:41 +02:00
committed by Peter Hamilton
parent fe60ecf02d
commit 645cbf2ae9

View File

@@ -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)
)