Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removed error message 'failed to parse application conf' on commands …

…that not need an existing app - introduced by eaf8190 which fixed issue [#1472]
  • Loading branch information...
commit 1440e11384962d1d1abd5f1f133f529478206980 1 parent 05471f6
@Notalifeform Notalifeform authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 framework/pym/play/application.py
View
7 framework/pym/play/application.py
@@ -20,12 +20,15 @@ class PlayApplication(object):
def __init__(self, application_path, env, ignoreMissingModules = False):
self.path = application_path
- if application_path is not None:
+ # only parse conf it is exists - if it should be there, it will be caught later
+ # (depends on command)
+ confExists = os.path.exists(os.path.join(self.path, 'conf', 'application.conf'));
+ if application_path is not None and confExists:
confFolder = os.path.join(application_path, 'conf/')
try:
self.conf = PlayConfParser(confFolder, env)
except Exception as err:
- print "~ Faile to parse application configuration", err
+ print "~ Failed to parse application configuration", err
self.conf = None # No app / Invalid app
else:
self.conf = None
Please sign in to comment.
Something went wrong with that request. Please try again.