Skip to content

Commit

Permalink
changed WindowsError as it renamed as OSError #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Srishti-j18 committed Jul 18, 2023
1 parent 77c190c commit 96b9901
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions dist/client/dash_client.py
Expand Up @@ -17,7 +17,7 @@
import six

import sys
import sys


if sys.version_info[0] < 3:
# Python 2
Expand Down Expand Up @@ -57,10 +57,17 @@
from configure_log_file import configure_log_file, write_json
import time

try:
WindowsError
except NameError:
from shutil import WindowsError
if sys.version_info[0] < 3:
# Python 2
import shutil
else:
# Python 3
import shutil

try:
from shutil import WindowsError
except ImportError:
WindowsError = OSError


# Constants
Expand Down

0 comments on commit 96b9901

Please sign in to comment.