mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
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
|
||||
capital vowel
|
||||
- Bug fix: Another case of the 'duplicate Discord bot connections' bug
|
||||
- Fix: Make XYZGrid contrib's MapParserErrors more succinct
|
||||
|
||||
## Evennia 1.1.1
|
||||
|
||||
|
|
|
|||
|
|
@ -295,8 +295,8 @@ def get_xyzgrid(print_errors=True):
|
|||
xyzgrid.reload()
|
||||
return xyzgrid
|
||||
elif len(xyzgrid) > 1:
|
||||
(
|
||||
"Warning: More than one XYZGrid instances were found. This is an error and "
|
||||
print(
|
||||
"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."
|
||||
)
|
||||
xyzgrid = xyzgrid[0]
|
||||
|
|
@ -304,7 +304,7 @@ def get_xyzgrid(print_errors=True):
|
|||
if not xyzgrid.ndb.loaded:
|
||||
xyzgrid.reload()
|
||||
except Exception as err:
|
||||
raise
|
||||
# raise # debug
|
||||
if print_errors:
|
||||
print(err)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue