]> git.0d.be Git - django-panik-nonstop.git/commitdiff
adapt python2 syntax in publish to icecast command
authorFrédéric Péters <fpeters@0d.be>
Thu, 18 Jun 2020 12:03:15 +0000 (14:03 +0200)
committerFrédéric Péters <fpeters@0d.be>
Thu, 18 Jun 2020 12:03:15 +0000 (14:03 +0200)
nonstop/management/commands/publish_to_icecast.py

index 0cbbb93c87281b5e83c79ef9d13bd641ce3039d5..b1f239d8a016123b546ae8bfc5c68747261a3f4c 100644 (file)
@@ -43,5 +43,5 @@ class Command(BaseCommand):
             try:
                 r = requests.get(stream_url + '&song=' + urllib.quote(onair_msg), timeout=5)
                 r.raise_for_status()
-            except Exception, e:
+            except Exception as e:
                 print('failed to update', e)