Skip to content

Commit

Permalink
removed error message 'failed to parse application conf' on commands …
Browse files Browse the repository at this point in the history
…that not need an existing app - introduced by eaf8190 which fixed issue [#1472]
  • Loading branch information
Notalifeform committed Jan 22, 2013
1 parent 05471f6 commit 1440e11
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions framework/pym/play/application.py
Expand Up @@ -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
Expand Down

0 comments on commit 1440e11

Please sign in to comment.