Skip to content

#6/7/12 samples: error checking and logging capability - #9

Merged
shinchris merged 5 commits into
developmentfrom
bugfix-6-samples-error-check
Sep 8, 2016
Merged

shinchris merged 5 commits into
developmentfrom
bugfix-6-samples-error-check

Conversation

@shinchris

Copy link
Copy Markdown
Contributor

No description provided.

import argparse

# import logging
# logging.basicConfig(level=logging.DEBUG)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It might be nice to allow people to set the logging level from the command line

@graysonarts

Copy link
Copy Markdown
Contributor

🚀

Comment thread samples/move_workbook_projects.py Outdated
raise LookupError(error)
else:
print('No workbook named {} found.'.format(args.workbook_name))
error = "The default project could not be found."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It is not the default project which can't be found. it is the destination project which cannot be found

@shinchris shinchris changed the title #6/7 raise errors in samples when project/workbook not found #6/7/12 samples: error checking and logging capability Sep 6, 2016
parser.add_argument('password', help='password to sign into server')
parser.add_argument('-info', action='store_true', help='set this flag to show logging information on INFO level')
parser.add_argument('-debug', action='store_true', help='set this flag to show logging information on DEBUG level')
parser.add_argument('-publish', '-p', metavar='FILEPATH', help='path to datasource to publish')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm pretty sure you are fixing this in another feature branch, but consistency is good. Long names should always be --, short names (single letters) should be -.

@graysonarts

Copy link
Copy Markdown
Contributor

🚀

@shinchris
shinchris merged commit cb179df into development Sep 8, 2016
@shinchris
shinchris deleted the bugfix-6-samples-error-check branch September 8, 2016 18:48
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.

3 participants