clean up
This commit is contained in:
parent
b2890216dc
commit
9d3f9e9bfb
@ -81,7 +81,7 @@ else:
|
|||||||
print(f'unsupported driver type "{driver_type}"')
|
print(f'unsupported driver type "{driver_type}"')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
# optionally prints a message and closes the web driver before exiting
|
# optionally prints a message and cleans up before exiting
|
||||||
def die(message=None):
|
def die(message=None):
|
||||||
if message is not None:
|
if message is not None:
|
||||||
print(message)
|
print(message)
|
||||||
@ -241,5 +241,5 @@ for student in args.students:
|
|||||||
|
|
||||||
writer.write(output_path)
|
writer.write(output_path)
|
||||||
writer.close()
|
writer.close()
|
||||||
|
# You should really just
|
||||||
die()
|
die()
|
||||||
Loading…
Reference in New Issue
Block a user