mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix PEP8 issues with latest pycodestyle (#6636)
This commit is contained in:
@@ -24,7 +24,7 @@ def get_my_ip():
|
||||
except Exception:
|
||||
external_ip = '127.0.0.1'
|
||||
|
||||
if type(external_ip) == bytes:
|
||||
if isinstance(external_ip, bytes):
|
||||
external_ip = external_ip.decode('utf-8')
|
||||
|
||||
ip = ipaddress.ip_address(external_ip)
|
||||
|
Reference in New Issue
Block a user