Skip to content

Instantly share code, notes, and snippets.

import logging
log = logging.getLogger(__name__)
def say_hello():
log.info('Hello from helper module!')
PS C:\Users\user> git init myrepo
Initialized empty Git repository in C:/Users/user/myrepo/.git/
origin_win ssh://user@1.1.1.1:myrepo (fetch)
origin_win ssh://user@1.1.1.1:myrepo (push)
@brunakov
brunakov / try_except_use.py
Last active January 3, 2019 09:31
try/except use
class Query:
def __init__(self, data):
try:
self.message = int(data, 16)
except ValueError as e:
print("You can't have empty strings for conversion")
class Poll:
def __init__(self, idx, query_data):