Skip to content

Commit

Permalink
Fixed spaces/tabs indentation mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
Coul33t committed Jan 31, 2018
1 parent 2b83344 commit 1418e2c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scrobble.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
#modified version of old gobble.py
try:
import hashlib
md5hash = hashlib.md5
except ImportError:
import md5
md5hash = md5.new

from optparse import OptionParser
import time

import socket
import errno

from urllib.parse import urlencode
from urllib.request import urlopen
from urllib.error import URLError, HTTPError


class ScrobbleException(Exception):

pass


Expand Down Expand Up @@ -69,9 +69,9 @@ def submit(self, sleep_func=time.sleep):
last_error = str(e)
print('Scrobbling error: %s, will retry in %ss' % (last_error, timeout))
except socket.error as error:
if error.errno == errno.WSAECONNRESET:
last_error = str(error)
print('Scrobbling error: %s, will retry in %ss' % (last_error, timeout))
if error.errno == errno.WSAECONNRESET:
last_error = str(error)
print('Scrobbling error: %s, will retry in %ss' % (last_error, timeout))

else:
if response == 'OK':
Expand Down

0 comments on commit 1418e2c

Please sign in to comment.