python /home/cod/mtr/script_for_cron.py -j default -m 10 -a ' python3 /home/cod/workarea/git/raspi-fotonower-x/python/DriveAPI/new_script.py -s /home/cod/workarea/git/raspi-fotonower-x/python/DriveAPI/client_secrets.json -C /home/cod/workarea/git/raspi-fotonower-x/python/DriveAPI/credentials.json -a ' -s cod_upload -M 0 -S 0 -U 90,90,90
Traceback (most recent call last):
  File "/home/cod/.local/lib/python3.8/site-packages/httplib2/__init__.py", line 1346, in _conn_request
    conn.connect()
  File "/home/cod/.local/lib/python3.8/site-packages/httplib2/__init__.py", line 1122, in connect
    address_info = socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM)
  File "/usr/lib/python3.8/socket.py", line 918, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/cod/workarea/git/raspi-fotonower-x/python/DriveAPI/new_script.py", line 97, in check_if_picture
    file_list = drive.ListFile({'q': "'{}' in parents and trashed=false".format(folder)}).GetList()
  File "/home/cod/.local/lib/python3.8/site-packages/pydrive/apiattr.py", line 162, in GetList
    for x in self:
  File "/home/cod/.local/lib/python3.8/site-packages/pydrive/apiattr.py", line 146, in __next__
    result = self._GetList()
  File "/home/cod/.local/lib/python3.8/site-packages/pydrive/auth.py", line 75, in _decorated
    return decoratee(self, *args, **kwargs)
  File "/home/cod/.local/lib/python3.8/site-packages/pydrive/files.py", line 63, in _GetList
    self.metadata = self.auth.service.files().list(**dict(self)).execute(
  File "/home/cod/.local/lib/python3.8/site-packages/googleapiclient/_helpers.py", line 134, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/home/cod/.local/lib/python3.8/site-packages/googleapiclient/http.py", line 920, in execute
    resp, content = _retry_request(
  File "/home/cod/.local/lib/python3.8/site-packages/googleapiclient/http.py", line 222, in _retry_request
    raise exception
  File "/home/cod/.local/lib/python3.8/site-packages/googleapiclient/http.py", line 191, in _retry_request
    resp, content = http.request(uri, method, *args, **kwargs)
  File "/home/cod/.local/lib/python3.8/site-packages/oauth2client/transport.py", line 173, in new_request
    resp, content = request(orig_request_method, uri, method, body,
  File "/home/cod/.local/lib/python3.8/site-packages/oauth2client/transport.py", line 280, in request
    return http_callable(uri, method=method, body=body, headers=headers,
  File "/home/cod/.local/lib/python3.8/site-packages/httplib2/__init__.py", line 1708, in request
    (response, content) = self._request(
  File "/home/cod/.local/lib/python3.8/site-packages/httplib2/__init__.py", line 1424, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/home/cod/.local/lib/python3.8/site-packages/httplib2/__init__.py", line 1353, in _conn_request
    raise ServerNotFoundError("Unable to find the server at %s" % conn.host)
httplib2.error.ServerNotFoundError: Unable to find the server at www.googleapis.com

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/cod/workarea/git/raspi-fotonower-x/python/DriveAPI/new_script.py", line 178, in <module>
    action_on_drive_per_second(extensions, x.verbose, x.path_to_secrets_file, x.cred, x.alert_slack, x.time_batch, x.json_path)
  File "/home/cod/workarea/git/raspi-fotonower-x/python/DriveAPI/new_script.py", line 139, in action_on_drive_per_second
    if check_if_picture(drive, folder['id'], extensions, verbose, path_to_secrets_file, cred):
  File "/home/cod/workarea/git/raspi-fotonower-x/python/DriveAPI/new_script.py", line 99, in check_if_picture
    print(exep +'\n' + 'Trying to reconnect to google API')
TypeError: unsupported operand type(s) for +: 'ServerNotFoundError' and 'str'
Command exited with non-zero status 1
73.12user 4.32system 46:32.95elapsed 2%CPU (0avgtext+0avgdata 93588maxresident)k
294232inputs+24outputs (17752major+88156minor)pagefaults 0swaps
