import os
import logging
from threading import Thread

os.environ['OUTDATED_IGNORE'] = '1'
from outdated import check_outdated  # noqa


__version__ = '1.2.2'


def check():
    try:
        is_outdated, latest = check_outdated('ogb', __version__)
        if is_outdated:
            logging.warning(
                f'The OGB package is out of date. Your version is '
                f'{__version__}, while the latest version is {latest}.')
    except Exception:
        pass


thread = Thread(target=check)
thread.start()

@@ -48,16 +48,48 @@
 Thread%0A%0A
+__version__ = '1.2.2'%0A%0Atry:%0A    
 os.envir
@@ -116,16 +116,20 @@
 %5D = '1'%0A
+    
 from out
@@ -164,39 +164,61 @@
  # noqa%0A
-%0A%0A__version__ = '1.2.2'
+except ImportError:%0A    check_outdated = None
 %0A%0A%0Adef c
@@ -530,16 +530,51 @@
  pass%0A%0A%0A
+if check_outdated is not None:%0A    
 thread =
@@ -595,16 +595,20 @@
 =check)%0A
+    
 thread.s

fix outdated import