Changeset 823e620 in sasmodels for sasmodels/exception.py
- Timestamp:
- Jan 29, 2016 8:46:54 PM (8 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- eafc9fa
- Parents:
- 803f835
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/exception.py
reaca9eb r823e620 8 8 except NameError: 9 9 class WindowsError(Exception): 10 """ 11 Fake WindowsException when not on Windows. 12 """ 10 13 pass 11 14 … … 31 34 # TODO: try to incorporate current stack trace in the raised exception 32 35 if isinstance(exc, WindowsError): 33 raise OSError(str(exc) +" "+msg)36 raise OSError(str(exc) + " " + msg) 34 37 35 38 args = exc.args … … 38 41 else: 39 42 try: 40 arg0 = " ".join((args[0], msg))43 arg0 = " ".join((args[0], msg)) 41 44 exc.args = tuple([arg0] + list(args[1:])) 42 45 except: 43 exc.args = (" ".join((str(exc), msg)),)46 exc.args = (" ".join((str(exc), msg)),)
Note: See TracChangeset
for help on using the changeset viewer.