import lib.collect.config as config

if config.BACKEND == 'dynamodb':
    import lib.collect.backends.dymamodb as api
else:
    import lib.collect.backends.localfs as api

import lib.collect.config as config

try:
    if config.BACKEND == 'dynamodb':
        import lib.collect.backends.dymamodb as api
    else:
        import lib.collect.backends.localfs as api
except AttributeError:
    import lib.collect.backends.localfs as api

Fix bug in module selection.
Fix bug in module selection.

  import lib.collect.config as config
  
+ try:
- if config.BACKEND == 'dynamodb':
+     if config.BACKEND == 'dynamodb':
-     import lib.collect.backends.dymamodb as api
+         import lib.collect.backends.dymamodb as api
- else:
+     else:
+         import lib.collect.backends.localfs as api
+ except AttributeError:
      import lib.collect.backends.localfs as api
  
Fix bug in module selection.
## Code Before:
import lib.collect.config as config

if config.BACKEND == 'dynamodb':
    import lib.collect.backends.dymamodb as api
else:
    import lib.collect.backends.localfs as api

## Instruction:
Fix bug in module selection.
## Code After:
import lib.collect.config as config

try:
    if config.BACKEND == 'dynamodb':
        import lib.collect.backends.dymamodb as api
    else:
        import lib.collect.backends.localfs as api
except AttributeError:
    import lib.collect.backends.localfs as api
