Skip to content

Conversation

@Coder-DG
Copy link
Owner

@Coder-DG Coder-DG commented May 23, 2016

No description provided.


def _create_with_user_config(user_config, service_config):
aws_srv_config = \
utils.convert_config_file(service_config)['aws']
Copy link
Owner Author

@Coder-DG Coder-DG May 26, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

read config once

error handling

@Coder-DG Coder-DG force-pushed the fetch-user-data-from-drive branch from dbde6cc to 20cda13 Compare May 29, 2016 12:51
@Coder-DG Coder-DG force-pushed the fetch-user-data-from-drive branch from 5b2417f to c57b025 Compare June 6, 2016 20:39
service_config = \
utils.convert_config_file(service_config)['aws']
if not user_config:
raise IOError('No user config was provided.')
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can create your own exception:

class SpucException(Exception):
     def __init__(self, message):
        self.message = message

    def __str__(self):
        return self.message

if not user_config:
    raise SpucException(message)

@Coder-DG Coder-DG force-pushed the fetch-user-data-from-drive branch 2 times, most recently from 4a40d87 to b8000a9 Compare June 8, 2016 14:23
@Coder-DG Coder-DG force-pushed the fetch-user-data-from-drive branch 2 times, most recently from 4e07be9 to 49638f3 Compare June 19, 2016 13:57
- Added Google App Script interaction
  - Added print password capability
@Coder-DG Coder-DG force-pushed the fetch-user-data-from-drive branch from ed74894 to ea8ddf3 Compare June 20, 2016 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants