mirror of
https://github.com/konpa/devicon.git
synced 2025-08-14 18:44:17 +02:00
Python now print traceback
This commit is contained in:
5
.github/scripts/icomoon_build.py
vendored
5
.github/scripts/icomoon_build.py
vendored
@@ -6,6 +6,7 @@ from selenium.common.exceptions import TimeoutException
|
||||
# don't worry about it, the script still runs
|
||||
from build_assets.SeleniumRunner import SeleniumRunner
|
||||
from build_assets import filehandler, arg_getters
|
||||
from build_assets import util
|
||||
|
||||
|
||||
def main():
|
||||
@@ -32,9 +33,9 @@ def main():
|
||||
filehandler.rename_extracted_files(args.download_path)
|
||||
print("Task completed.")
|
||||
except TimeoutException as e:
|
||||
sys.exit("Selenium Time Out Error: \n" + str(e))
|
||||
util.exit_with_err("Selenium Time Out Error: \n" + str(e))
|
||||
except Exception as e:
|
||||
sys.exit(str(e))
|
||||
util.exit_with_err(e)
|
||||
finally:
|
||||
runner.close()
|
||||
|
||||
|
Reference in New Issue
Block a user