Skip to content

Commit

Permalink
Update config is not None, per review
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarrien committed Nov 11, 2015
1 parent 7e23a91 commit 6764c58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boto3/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def resource(self, service_name, region_name=None, api_version=None,
# and service model, the resource version and resource JSON data.
# We pass these to the factory and get back a class, which is
# instantiated on top of the low-level client.
if config:
if config is not None:
if config.user_agent_extra is None:
config = copy.deepcopy(config)
config.user_agent_extra = 'Resource'
Expand Down

0 comments on commit 6764c58

Please sign in to comment.