mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
A few minor error checks
This commit is contained in:
parent
60973fdb7b
commit
a1580db8ff
@ -118,7 +118,7 @@ class HostInfo:
|
|||||||
# We've already got one.
|
# We've already got one.
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if self.appRunner.verifyContents == self.appRunner.P3DVCNever:
|
if self.appRunner and self.appRunner.verifyContents == self.appRunner.P3DVCNever:
|
||||||
# Not allowed to.
|
# Not allowed to.
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@ -187,7 +187,7 @@ class HostInfo:
|
|||||||
not. """
|
not. """
|
||||||
assert self.hasContentsFile
|
assert self.hasContentsFile
|
||||||
|
|
||||||
if self.appRunner.verifyContents == self.appRunner.P3DVCNever:
|
if self.appRunner and self.appRunner.verifyContents == self.appRunner.P3DVCNever:
|
||||||
# Not allowed to.
|
# Not allowed to.
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@ -352,7 +352,7 @@ class HostInfo:
|
|||||||
self.hasContentsFile = True
|
self.hasContentsFile = True
|
||||||
|
|
||||||
# Now save the contents.xml file into the standard location.
|
# Now save the contents.xml file into the standard location.
|
||||||
if self.appRunner.verifyContents != self.appRunner.P3DVCNever:
|
if not self.appRunner or self.appRunner.verifyContents != self.appRunner.P3DVCNever:
|
||||||
assert self.hostDir
|
assert self.hostDir
|
||||||
filename = Filename(self.hostDir, 'contents.xml')
|
filename = Filename(self.hostDir, 'contents.xml')
|
||||||
filename.makeDir()
|
filename.makeDir()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user