Skip to content

Commit

Permalink
Adhere to black
Browse files Browse the repository at this point in the history
  • Loading branch information
nailend committed Oct 5, 2023
1 parent 4215cb4 commit ce3eb63
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/oemof/tabular/datapackage/reading.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,11 @@ def deserialize_energy_system(cls, path, typemap={}, attributemap={}):
try:
r.read()
except dp.exceptions.CastError as e:
raise dp.exceptions.CastError("\n" +
(cast_error_msg).format(r.name)
+ "\n" + "\n ".join(
[str(i) for i in e.errors])
raise dp.exceptions.CastError(
"\n"
+ (cast_error_msg).format(r.name)
+ "\n"
+ "\n ".join([str(i) for i in e.errors])
)
empty = HSN()
empty.read = lambda *xs, **ks: ()
Expand Down

0 comments on commit ce3eb63

Please sign in to comment.