mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
fix problem with wokwi files not being fetched. Add the wokwi truthtable testing that got lost in merge
This commit is contained in:
+4
-2
@@ -3,7 +3,9 @@ from urllib.parse import urlparse
|
||||
import logging
|
||||
import requests
|
||||
import os
|
||||
import zipfile, io
|
||||
import zipfile
|
||||
import io
|
||||
import errno
|
||||
|
||||
|
||||
def unique(duplist):
|
||||
@@ -21,7 +23,7 @@ def fetch_file(url, filename):
|
||||
r = requests.get(url)
|
||||
if r.status_code != 200:
|
||||
logging.warning("couldn't download {}".format(url))
|
||||
exit(1)
|
||||
raise FileNotFoundError(errno.ENOENT, os.strerror(errno.ENOENT), filename)
|
||||
|
||||
with open(filename, 'wb') as fh:
|
||||
logging.info("written to {}".format(filename))
|
||||
|
||||
Reference in New Issue
Block a user