|
314 | 314 |
|
315 | 315 |
|
316 | 316 | try:
|
317 |
| - from zoautil_py import datasets, mvscmd, ztypes, gdgs, zoau_exceptions |
| 317 | + from zoautil_py import datasets, mvscmd, ztypes, gdgs |
318 | 318 | except Exception:
|
319 | 319 | datasets = ZOAUImportError(traceback.format_exc())
|
320 | 320 | mvscmd = ZOAUImportError(traceback.format_exc())
|
321 | 321 | ztypes = ZOAUImportError(traceback.format_exc())
|
| 322 | + |
| 323 | +try: |
| 324 | + from zoautil_py import exceptions as zoau_exceptions |
| 325 | +except Exception: |
322 | 326 | zoau_exceptions = ZOAUImportError(traceback.format_exc())
|
323 | 327 |
|
324 | 328 |
|
@@ -637,7 +641,7 @@ def _fetch_pdse(self, src, is_binary, temp_dir=None, encoding=None):
|
637 | 641 | copy_args["options"] = "-B"
|
638 | 642 |
|
639 | 643 | try:
|
640 |
| - rc = datasets.copy(source=src, target=dir_path, **copy_args) |
| 644 | + datasets.copy(source=src, target=dir_path, **copy_args) |
641 | 645 |
|
642 | 646 | except zoau_exceptions.ZOAUException as copy_exception:
|
643 | 647 | rmtree(dir_path)
|
@@ -771,7 +775,7 @@ def _fetch_mvs_data(self, src, is_binary, temp_dir=None, file_override=None, enc
|
771 | 775 | copy_args["options"] = "-B"
|
772 | 776 |
|
773 | 777 | try:
|
774 |
| - rc = datasets.copy(source=src, target=file_path, **copy_args) |
| 778 | + datasets.copy(source=src, target=file_path, **copy_args) |
775 | 779 |
|
776 | 780 | except zoau_exceptions.ZOAUException as copy_exception:
|
777 | 781 | os.remove(file_path)
|
|
0 commit comments