mirror of
https://github.com/konpa/devicon.git
synced 2025-08-17 20:01:38 +02:00
Python now print traceback
This commit is contained in:
5
.github/scripts/icomoon_peek.py
vendored
5
.github/scripts/icomoon_peek.py
vendored
@@ -8,6 +8,7 @@ import xml.etree.ElementTree as et
|
||||
# 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():
|
||||
@@ -39,9 +40,9 @@ def main():
|
||||
runner.upload_svgs(svgs, screenshot_folder)
|
||||
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