Skip to content

Commit 7e80fac

Browse files
committed
Convert dictionnary keys iterator to list before using index on it
1 parent 6c4b8c3 commit 7e80fac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phabricator/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def __init__(self, username=None, certificate=None, host=None,
333333
defined_hosts = ARCRC.get('hosts', {})
334334

335335
try:
336-
self.host = host if host else defined_hosts.keys()[0]
336+
self.host = host if host else list(defined_hosts.keys())[0]
337337
except IndexError:
338338
raise ConfigurationError("No host found or provided.")
339339

0 commit comments

Comments
 (0)