Skip to content

Commit 758b784

Browse files
committed
minor grammar changes and refactor yeoman template
1 parent defc02c commit 758b784

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Generator/generator-botbuilder-python/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
## Installation
55

6-
First, install [Yeoman](http://yeoman.io) and generator-botbuilder-python using [npm](https://www.npmjs.com/) (we assume you have pre-installed [node.js](https://nodejs.org/)).
6+
First, install [Yeoman](http://yeoman.io) and generator-botbuilder-python using [npm](https://www.npmjs.com/) (we assume you have pre-installed [Node.js](https://nodejs.org/)).
77

88
```bash
99
npm install -g yo
@@ -25,7 +25,7 @@ yo botbuilder-python
2525

2626
## License
2727

28-
MIT © [Microsoft]()
28+
MIT © [Microsoft](https://microsoft.com)
2929

3030

3131
[npm-image]: https://badge.fury.io/js/generator-botbuilder-python.svg

Generator/generator-botbuilder-python/generators/app/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = class extends Generator {
1717
const prompts = [
1818
{ name: 'botName', message: `What 's the name of your bot?`, default: 'sample' },
1919
{ name: 'description', message: 'What will your bot do?', default: 'sample' },
20-
{ name: 'dialog', type: 'list', message: 'What default dialog do you want?', choices: ['Echo'] },
20+
{ name: 'dialog', type: 'list', message: 'Which default dialog do you want?', choices: ['Echo'] },
2121
];
2222

2323
return this.prompt(prompts).then(props => {

Generator/generator-botbuilder-python/generators/app/templates/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ async def messages(req: web.web_request) -> web.Response:
5555
auth_header = req.headers['Authorization'] if 'Authorization' in req.headers else ''
5656
try:
5757
return await ADAPTER.process_request(activity, auth_header, request_handler)
58-
except BaseException as e:
58+
except Exception as e:
5959
raise e
6060

6161

@@ -64,5 +64,5 @@ async def messages(req: web.web_request) -> web.Response:
6464

6565
try:
6666
web.run_app(app, host='localhost', port=PORT)
67-
except BaseException as e:
67+
except Exception as e:
6868
raise e
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
git+https://github.com/Azure/msrest-for-python@async2
2-
botbuilder-core>=4.0.0.a2
2+
botbuilder-core>=4.0.0.a3
33
aiohttp>=3.0.0

0 commit comments

Comments
 (0)