Skip to content

Commit 41a5e0e

Browse files
committed
Fix for issue #195
1 parent 1b4db05 commit 41a5e0e

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## [Unreleased]
44
### Fixed
55
- Issue [#194](https://github.com/reportportal/client-Python/issues/194): logging URL generation, by @HardNorth
6+
- Issue [#195](https://github.com/reportportal/client-Python/issues/195): `None` mode exception
67

78
## [5.2.4]
89
### Changed

reportportal_client/client.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,11 +310,13 @@ def start_launch(self,
310310
# We are moving 'mode' param to the constructor, next code for the
311311
# transition period only.
312312
my_kwargs = dict(kwargs)
313-
mode = my_kwargs.get('mode')
314-
if not mode:
315-
mode = self.mode
316-
else:
313+
if 'mode' in my_kwargs.keys():
314+
mode = my_kwargs['mode']
317315
del my_kwargs['mode']
316+
if not mode:
317+
mode = self.mode
318+
else:
319+
mode = self.mode
318320

319321
request_payload = LaunchStartRequest(
320322
name=name,

0 commit comments

Comments
 (0)