mirror of
https://github.com/barronwaffles/dwc_network_server_emulator.git
synced 2026-07-13 06:31:07 -05:00
Take advantage of boolean operators
This commit is contained in:
parent
2c631489e5
commit
ca4b4683ba
|
|
@ -328,7 +328,7 @@ class Session(LineReceiver):
|
|||
|
||||
for _server in self.server_list:
|
||||
server = _server
|
||||
if len(server) > 0 and len(fields) > 0 and 'requested' in server and server['requested'] == {}:
|
||||
if server and fields and 'requested' in server and server['requested'] == {}:
|
||||
# If the requested fields weren't found then don't return a server.
|
||||
# This fixes a bug with Mario Kart DS.
|
||||
#print "Requested was empty"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user