SiddiqueAkhonda
commited on
Commit
•
aeefba8
1
Parent(s):
a64db7a
Update msynth.py
Browse files
msynth.py
CHANGED
@@ -213,8 +213,8 @@ class msynth(datasets.GeneratorBasedBuilder):
|
|
213 |
data_dir.append(temp_down_file)
|
214 |
|
215 |
except Exception as e:
|
216 |
-
|
217 |
-
|
218 |
|
219 |
return [
|
220 |
datasets.SplitGenerator(
|
@@ -255,8 +255,8 @@ class msynth(datasets.GeneratorBasedBuilder):
|
|
255 |
seg_dir.append(temp_down_file)
|
256 |
|
257 |
except Exception as e:
|
258 |
-
|
259 |
-
|
260 |
|
261 |
return [
|
262 |
datasets.SplitGenerator(
|
|
|
213 |
data_dir.append(temp_down_file)
|
214 |
|
215 |
except Exception as e:
|
216 |
+
# If an exception occurs (e.g., file not found), log the error and add the URL to the failed_urls list
|
217 |
+
logger.error(f"Failed to download {url}: {e}")
|
218 |
|
219 |
return [
|
220 |
datasets.SplitGenerator(
|
|
|
255 |
seg_dir.append(temp_down_file)
|
256 |
|
257 |
except Exception as e:
|
258 |
+
# If an exception occurs (e.g., file not found), log the error and add the URL to the failed_urls list
|
259 |
+
logger.error(f"Failed to download {url}: {e}")
|
260 |
|
261 |
return [
|
262 |
datasets.SplitGenerator(
|