cwctl.py
changeset 7577 9892937d9041
parent 7538 849c04098f3f
child 7591 cb6ece9cdb78
--- a/cwctl.py	Wed Jun 29 16:13:09 2011 +0200
+++ b/cwctl.py	Wed Jun 29 18:26:29 2011 +0200
@@ -727,11 +727,9 @@
         config = cwcfg.config_for(appid)
         config.repairing = True # notice we're not starting the server
         config.verbosity = self.config.verbosity
-        try:
-            config.set_sources_mode(self.config.ext_sources or ('migration',))
-        except AttributeError:
-            # not a server config
-            pass
+        set_sources_mode = getattr(config, 'set_sources_mode', None)
+        if set_sources_mode is not None:
+            set_sources_mode(self.config.ext_sources or ('migration',))
         # get instance and installed versions for the server and the componants
         mih = config.migration_handler()
         repo = mih.repo_connect()