comparison tincan.py @ 30:f34d5a90d618 draft header-includes

Fix minor bug in error handling.
author David Barts <n5jrn@me.com>
date Mon, 27 May 2019 14:58:40 -0700
parents 2e3ac3d7b0a4
children 443a0001d841
comparison
equal deleted inserted replaced
29:2e3ac3d7b0a4 30:f34d5a90d618
481 self._includes = {} 481 self._includes = {}
482 for include in includes: 482 for include in includes:
483 try: 483 try:
484 include = _IncludedFile(include) 484 include = _IncludedFile(include)
485 except ValueError as e: 485 except ValueError as e:
486 raise TinCanError("{0}: bad #include: {1!s}", self._urlpath, e) from e 486 raise TinCanError("{0}: bad #include: {1!s}".format(self._urlpath, e)) from e
487 if include.in_lib: 487 if include.in_lib:
488 fdir = os.path.join(self._fsroot, _WINF, "tlib") 488 fdir = os.path.join(self._fsroot, _WINF, "tlib")
489 else: 489 else:
490 fdir = os.path.join(self._fsroot, *ibase) 490 fdir = os.path.join(self._fsroot, *ibase)
491 try: 491 try: