Ignore:
Timestamp:
02/06/23 01:14:15 (2 years ago)
Author:
Maciej Komosinski
Message:

Cosmetic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • framspy/FramsticksLib.py

    r1196 r1199  
    7070                        ec.close()
    7171                        print(ec.messages) # output all caught messages
    72                         assert ec.error_count._value() == 0, "Problem while importing file '%s'" % simfile # make missing files fatal because error messages are easy to overlook
     72                        if ec.error_count._value() > 0:
     73                                raise ValueError("Problem while importing file '%s'" % simfile) # make missing files or incorrect paths fatal because they would not stop Framsticks from further processing, and error messages are easy to overlook in output
    7374
    7475
Note: See TracChangeset for help on using the changeset viewer.