Make XYZGrid contrib's MapParserError more succinct. Resolve #3086
This commit is contained in:
parent
20bfb792dc
commit
c29a432a59
2 changed files with 4 additions and 3 deletions
|
|
@ -8,6 +8,7 @@
|
||||||
- Bug fix: `$an()` inlinefunc didn't understand to use 'an' words starting with a
|
- Bug fix: `$an()` inlinefunc didn't understand to use 'an' words starting with a
|
||||||
capital vowel
|
capital vowel
|
||||||
- Bug fix: Another case of the 'duplicate Discord bot connections' bug
|
- Bug fix: Another case of the 'duplicate Discord bot connections' bug
|
||||||
|
- Fix: Make XYZGrid contrib's MapParserErrors more succinct
|
||||||
|
|
||||||
## Evennia 1.1.1
|
## Evennia 1.1.1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -295,8 +295,8 @@ def get_xyzgrid(print_errors=True):
|
||||||
xyzgrid.reload()
|
xyzgrid.reload()
|
||||||
return xyzgrid
|
return xyzgrid
|
||||||
elif len(xyzgrid) > 1:
|
elif len(xyzgrid) > 1:
|
||||||
(
|
print(
|
||||||
"Warning: More than one XYZGrid instances were found. This is an error and "
|
"Warning: More than one XYZGrid instance were found. This is an error and "
|
||||||
"only the first one will be used. Delete the other one(s) manually."
|
"only the first one will be used. Delete the other one(s) manually."
|
||||||
)
|
)
|
||||||
xyzgrid = xyzgrid[0]
|
xyzgrid = xyzgrid[0]
|
||||||
|
|
@ -304,7 +304,7 @@ def get_xyzgrid(print_errors=True):
|
||||||
if not xyzgrid.ndb.loaded:
|
if not xyzgrid.ndb.loaded:
|
||||||
xyzgrid.reload()
|
xyzgrid.reload()
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
raise
|
# raise # debug
|
||||||
if print_errors:
|
if print_errors:
|
||||||
print(err)
|
print(err)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue