Permalink
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...
1 parent 05471f6 commit 1440e11384962d1d1abd5f1f133f529478206980 @Notalifeform Notalifeform committed Jan 22, 2013
Showing with 5 additions and 2 deletions.
  1. +5 −2 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

0 comments on commit 1440e11

Please sign in to comment.