Skip to content

Commit e31a377

Browse files
authored
Merge pull request #978 from graphite-project/copilot/fix-line-37-38-logic
2 parents 697bc3b + 9e13277 commit e31a377

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/carbon/manhole.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def createManholeListener():
3434
sshRealm = TerminalRealm()
3535
sshRealm.chainedProtocolFactory.protocolFactory = lambda _: Manhole(namespace)
3636

37-
if (settings.MANHOLE_PUBLIC_KEY == 'None' or
37+
if (settings.MANHOLE_PUBLIC_KEY == 'None' and
3838
twisted.version >= versions.Version('twisted', 16, 1, 0)):
3939
credChecker = checkers.InMemoryUsernamePasswordDatabaseDontUse()
4040
credChecker.addUser(settings.MANHOLE_USER.encode('utf-8'),

0 commit comments

Comments
 (0)