Ignore:
Timestamp:
Oct 17, 2018 9:07:51 AM (6 years ago)
Author:
krzywon
Branches:
master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, unittest-saveload
Children:
b204004
Parents:
5218180
Message:

Remove unneeded shape check, give better error when saving fails, and data info cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/dataloader/loader.py

    r8d5e11c rb1ec23d  
    367367            try: 
    368368                return fn(path, data) 
    369             except Exception as exep: 
    370                 pass  # give other loaders a chance to succeed 
    371         # If we get here it is because all loaders failed 
    372         raise exep # raises last exception 
     369            except Exception as exc: 
     370                msg = "Saving file {} using the {} writer failed.\n".format( 
     371                    path, type(fn).__name__) 
     372                msg += str(exc) 
     373                logger.exception(msg)  # give other loaders a chance to succeed 
    373374 
    374375 
Note: See TracChangeset for help on using the changeset viewer.